home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-04-16 | 37.5 KB | [TEXT/DOCS] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: UserTalk Source Text
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Apr 16 17:51:48 1992, modified Thu Apr 16 17:51:48 1992, creator 'DOCS', type ASCII, 37787 bytes "UserTalk Source Text" , at 0x941b 348 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [DOCS] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 55 73 65 72 54 61 | 6c 6b 20 53 6f 75 72 63 |..UserTa|lk Sourc|
|00000010| 65 20 54 65 78 74 00 00 | 00 00 00 00 00 00 00 00 |e Text..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 44 4f 43 | 53 01 00 00 00 00 00 00 |.TEXTDOC|S.......|
|00000050| 00 00 00 00 00 93 9b 00 | 00 01 5c a6 13 a7 74 a6 |........|..\...t.|
|00000060| 13 a7 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..t.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 88 5d 00 00 |........|.....]..|
|00000080| 56 65 72 62 09 2b 0d 53 | 79 6e 74 61 78 09 65 78 |Verb.+.S|yntax.ex|
|00000090| 70 72 65 73 73 69 6f 6e | 31 20 2b 20 65 78 70 72 |pression|1 + expr|
|000000a0| 65 73 73 69 6f 6e 32 0d | 41 63 74 69 6f 6e 09 54 |ession2.|Action.T|
|000000b0| 68 65 20 61 72 69 74 68 | 6d 65 74 69 63 20 61 64 |he arith|metic ad|
|000000c0| 64 69 74 69 6f 6e 20 6f | 70 65 72 61 74 6f 72 20 |dition o|perator |
|000000d0| 79 69 65 6c 64 73 20 74 | 68 65 20 73 75 6d 20 6f |yields t|he sum o|
|000000e0| 66 20 74 68 65 20 76 61 | 6c 75 65 73 20 6f 66 20 |f the va|lues of |
|000000f0| 65 78 70 72 65 73 73 69 | 6f 6e 31 20 61 6e 64 20 |expressi|on1 and |
|00000100| 65 78 70 72 65 73 73 69 | 6f 6e 32 2e 0d 45 78 61 |expressi|on2..Exa|
|00000110| 6d 70 6c 65 73 09 31 20 | 2b 20 31 0d 09 c8 20 32 |mples.1 |+ 1... 2|
|00000120| 0d 55 73 65 72 54 61 6c | 6b 20 63 61 6e 20 61 64 |.UserTal|k can ad|
|00000130| 64 20 6f 6e 65 20 61 6e | 64 20 6f 6e 65 20 77 69 |d one an|d one wi|
|00000140| 74 68 20 67 72 65 61 74 | 20 66 61 63 69 6c 69 74 |th great| facilit|
|00000150| 79 21 0d 0d 22 6f 6e 65 | 22 20 2b 20 22 6f 6e 65 |y!.."one|" + "one|
|00000160| 22 0d 09 c8 20 6f 6e 65 | 6f 6e 65 0d 54 68 65 20 |"... one|one.The |
|00000170| 61 64 64 69 74 69 6f 6e | 20 6f 70 65 72 61 74 6f |addition| operato|
|00000180| 72 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |r can be| used to|
|00000190| 20 63 6f 6e 63 61 74 65 | 6e 61 74 65 20 73 74 72 | concate|nate str|
|000001a0| 69 6e 67 73 2e 0d 0d 33 | 20 2b 20 22 6b 20 62 79 |ings...3| + "k by|
|000001b0| 74 65 73 20 6e 65 65 64 | 65 64 2e 22 0d 09 c7 20 |tes need|ed."... |
|000001c0| 33 6b 20 62 79 74 65 73 | 20 6e 65 65 64 65 64 2e |3k bytes| needed.|
|000001d0| 0d 4e 6f 74 65 73 09 55 | 73 65 72 54 61 6c 6b 20 |.Notes.U|serTalk |
|000001e0| 65 6d 70 6c 6f 79 73 20 | 61 75 74 6f 6d 61 74 69 |employs |automati|
|000001f0| 63 20 74 79 70 65 20 63 | 6f 65 72 63 69 6f 6e 20 |c type c|oercion |
|00000200| 77 68 65 6e 20 65 76 61 | 6c 75 61 74 69 6e 67 20 |when eva|luating |
|00000210| 61 72 69 74 68 6d 65 74 | 69 63 20 61 6e 64 20 63 |arithmet|ic and c|
|00000220| 6f 6d 70 61 72 61 74 69 | 76 65 20 6f 70 65 72 61 |omparati|ve opera|
|00000230| 74 69 6f 6e 73 3b 20 74 | 68 65 20 74 77 6f 20 65 |tions; t|he two e|
|00000240| 78 70 72 65 73 73 69 6f | 6e 73 20 6e 65 65 64 20 |xpressio|ns need |
|00000250| 6e 6f 74 20 62 65 20 6f | 66 20 74 68 65 20 73 61 |not be o|f the sa|
|00000260| 6d 65 20 74 79 70 65 20 | 74 6f 20 62 65 20 61 64 |me type |to be ad|
|00000270| 64 65 64 20 74 6f 67 65 | 74 68 65 72 2e 20 47 65 |ded toge|ther. Ge|
|00000280| 6e 65 72 61 6c 6c 79 2c | 20 74 68 65 20 72 65 73 |nerally,| the res|
|00000290| 75 6c 74 69 6e 67 20 74 | 79 70 65 20 d1 20 77 68 |ulting t|ype . wh|
|000002a0| 69 63 68 20 64 65 74 65 | 72 6d 69 6e 65 73 20 74 |ich dete|rmines t|
|000002b0| 68 65 20 6d 65 74 68 6f | 64 20 6f 66 20 61 64 64 |he metho|d of add|
|000002c0| 69 74 69 6f 6e 20 d1 20 | 69 73 20 74 68 65 20 6d |ition . |is the m|
|000002d0| 6f 72 65 20 63 6f 6d 70 | 6c 65 78 20 74 79 70 65 |ore comp|lex type|
|000002e0| 2c 20 74 68 65 20 6f 6e | 65 20 74 68 61 74 20 63 |, the on|e that c|
|000002f0| 61 6e 20 6d 6f 73 74 20 | 72 65 61 64 69 6c 79 20 |an most |readily |
|00000300| 72 65 70 72 65 73 65 6e | 74 20 62 6f 74 68 20 76 |represen|t both v|
|00000310| 61 6c 75 65 73 2e 0d 53 | 65 65 20 41 6c 73 6f 09 |alues..S|ee Also.|
|00000320| d0 0d 2a 0d 2f 0d 25 0d | 0d 56 65 72 62 09 2d 0d |..*./.%.|.Verb.-.|
|00000330| 53 79 6e 74 61 78 09 65 | 78 70 72 65 73 73 69 6f |Syntax.e|xpressio|
|00000340| 6e 31 20 d0 20 65 78 70 | 72 65 73 73 69 6f 6e 32 |n1 . exp|ression2|
|00000350| 0d 41 63 74 69 6f 6e 09 | 54 68 65 20 61 72 69 74 |.Action.|The arit|
|00000360| 68 6d 65 74 69 63 20 73 | 75 62 74 72 61 63 74 69 |hmetic s|ubtracti|
|00000370| 6f 6e 20 6f 70 65 72 61 | 74 6f 72 20 79 69 65 6c |on opera|tor yiel|
|00000380| 64 73 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 63 |ds the d|ifferenc|
|00000390| 65 20 6f 66 20 74 68 65 | 20 76 61 6c 75 65 73 20 |e of the| values |
|000003a0| 6f 66 20 65 78 70 72 65 | 73 73 69 6f 6e 31 20 61 |of expre|ssion1 a|
|000003b0| 6e 64 20 65 78 70 72 65 | 73 73 69 6f 6e 32 2e 0d |nd expre|ssion2..|
|000003c0| 45 78 61 6d 70 6c 65 73 | 09 33 20 d0 20 30 2e 35 |Examples|.3 . 0.5|
|000003d0| 0d 09 c8 20 32 2e 35 0d | 54 68 65 20 6e 75 6d 62 |... 2.5.|The numb|
|000003e0| 65 72 20 33 20 69 73 20 | d2 70 72 6f 6d 6f 74 65 |er 3 is |.promote|
|000003f0| 64 d3 20 74 6f 20 61 20 | 64 6f 75 62 6c 65 2c 20 |d. to a |double, |
|00000400| 74 68 65 20 74 79 70 65 | 20 6f 66 20 30 2e 35 2c |the type| of 0.5,|
|00000410| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 70 65 72 | in orde|r to per|
|00000420| 66 6f 72 6d 20 74 68 65 | 20 73 75 62 74 72 61 63 |form the| subtrac|
|00000430| 74 69 6f 6e 2e 0d 0d 22 | 77 6f 72 6b 66 69 6c 65 |tion..."|workfile|
|00000440| 2e 62 61 63 6b 75 70 22 | 20 d0 20 22 2e 62 61 63 |.backup"| . ".bac|
|00000450| 6b 75 70 22 0d 09 c8 20 | 77 6f 72 6b 66 69 6c 65 |kup"... |workfile|
|00000460| 0d 54 68 65 20 73 75 62 | 74 72 61 63 74 69 6f 6e |.The sub|traction|
|00000470| 20 6f 70 65 72 61 74 6f | 72 20 77 6f 72 6b 73 20 | operato|r works |
|00000480| 77 69 74 68 20 73 74 72 | 69 6e 67 73 3b 20 74 68 |with str|ings; th|
|00000490| 65 20 72 65 73 75 6c 74 | 20 69 73 20 74 68 65 20 |e result| is the |
|000004a0| 72 65 6d 6f 76 61 6c 20 | 6f 66 20 74 68 65 20 66 |removal |of the f|
|000004b0| 69 72 73 74 20 6f 63 63 | 75 72 72 65 6e 63 65 20 |irst occ|urrence |
|000004c0| 6f 66 20 74 68 65 20 73 | 65 63 6f 6e 64 20 73 74 |of the s|econd st|
|000004d0| 72 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 66 69 |ring fro|m the fi|
|000004e0| 72 73 74 20 73 74 72 69 | 6e 67 2e 0d 0d 22 61 62 |rst stri|ng..."ab|
|000004f0| 63 22 20 d0 20 22 64 65 | 66 22 0d 09 c7 20 61 62 |c" . "de|f"... ab|
|00000500| 63 0d 54 68 65 20 73 65 | 63 6f 6e 64 20 73 74 72 |c.The se|cond str|
|00000510| 69 6e 67 20 64 6f 65 73 | 20 6e 6f 74 20 61 70 70 |ing does| not app|
|00000520| 65 61 72 20 69 6e 20 74 | 68 65 20 66 69 72 73 74 |ear in t|he first|
|00000530| 2c 20 73 6f 20 6e 6f 74 | 68 69 6e 67 20 69 73 20 |, so not|hing is |
|00000540| 72 65 6d 6f 76 65 64 2e | 0d 4e 6f 74 65 73 09 55 |removed.|.Notes.U|
|00000550| 73 65 72 54 61 6c 6b 20 | 65 6d 70 6c 6f 79 73 20 |serTalk |employs |
|00000560| 61 75 74 6f 6d 61 74 69 | 63 20 74 79 70 65 20 63 |automati|c type c|
|00000570| 6f 65 72 63 69 6f 6e 20 | 77 68 65 6e 20 65 76 61 |oercion |when eva|
|00000580| 6c 75 61 74 69 6e 67 20 | 61 72 69 74 68 6d 65 74 |luating |arithmet|
|00000590| 69 63 20 61 6e 64 20 63 | 6f 6d 70 61 72 61 74 69 |ic and c|omparati|
|000005a0| 76 65 20 6f 70 65 72 61 | 74 69 6f 6e 73 3b 20 74 |ve opera|tions; t|
|000005b0| 68 65 20 74 77 6f 20 65 | 78 70 72 65 73 73 69 6f |he two e|xpressio|
|000005c0| 6e 73 20 6e 65 65 64 20 | 6e 6f 74 20 62 65 20 6f |ns need |not be o|
|000005d0| 66 20 74 68 65 20 73 61 | 6d 65 20 74 79 70 65 20 |f the sa|me type |
|000005e0| 74 6f 20 62 65 20 73 75 | 62 74 72 61 63 74 65 64 |to be su|btracted|
|000005f0| 2e 20 47 65 6e 65 72 61 | 6c 6c 79 2c 20 74 68 65 |. Genera|lly, the|
|00000600| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 79 70 65 20 | resulti|ng type |
|00000610| d1 20 77 68 69 63 68 20 | 64 65 74 65 72 6d 69 6e |. which |determin|
|00000620| 65 73 20 74 68 65 20 6d | 65 74 68 6f 64 20 6f 66 |es the m|ethod of|
|00000630| 20 73 75 62 74 72 61 63 | 74 69 6f 6e 20 d1 20 69 | subtrac|tion . i|
|00000640| 73 20 74 68 65 20 6d 6f | 72 65 20 63 6f 6d 70 6c |s the mo|re compl|
|00000650| 65 78 20 74 79 70 65 2c | 20 74 68 65 20 6f 6e 65 |ex type,| the one|
|00000660| 20 74 68 61 74 20 63 61 | 6e 20 6d 6f 73 74 20 72 | that ca|n most r|
|00000670| 65 61 64 69 6c 79 20 72 | 65 70 72 65 73 65 6e 74 |eadily r|epresent|
|00000680| 20 62 6f 74 68 20 76 61 | 6c 75 65 73 2e 0d 54 68 | both va|lues..Th|
|00000690| 65 20 6d 69 6e 75 73 20 | 6f 70 65 72 61 74 6f 72 |e minus |operator|
|000006a0| 20 63 61 6e 20 61 6c 73 | 6f 20 61 70 70 65 61 72 | can als|o appear|
|000006b0| 20 62 65 66 6f 72 65 20 | 61 20 73 69 6e 67 6c 65 | before |a single|
|000006c0| 20 6f 70 65 72 61 6e 64 | 20 74 6f 20 69 6e 64 69 | operand| to indi|
|000006d0| 63 61 74 65 20 61 72 69 | 74 68 6d 65 74 69 63 20 |cate ari|thmetic |
|000006e0| 6e 65 67 61 74 69 6f 6e | 2e 0d 53 65 65 20 41 6c |negation|..See Al|
|000006f0| 73 6f 09 2b 0d 2a 0d 2f | 0d 25 0d 0d 56 65 72 62 |so.+.*./|.%..Verb|
|00000700| 09 2a 0d 53 79 6e 74 61 | 78 09 65 78 70 72 65 73 |.*.Synta|x.expres|
|00000710| 73 69 6f 6e 31 20 2a 20 | 65 78 70 72 65 73 73 69 |sion1 * |expressi|
|00000720| 6f 6e 32 0d 41 63 74 69 | 6f 6e 09 54 68 65 20 61 |on2.Acti|on.The a|
|00000730| 72 69 74 68 6d 65 74 69 | 63 20 6d 75 6c 74 69 70 |rithmeti|c multip|
|00000740| 6c 69 63 61 74 69 6f 6e | 20 6f 70 65 72 61 74 6f |lication| operato|
|00000750| 72 20 79 69 65 6c 64 73 | 20 74 68 65 20 70 72 6f |r yields| the pro|
|00000760| 64 75 63 74 20 6f 66 20 | 74 68 65 20 76 61 6c 75 |duct of |the valu|
|00000770| 65 73 20 6f 66 20 65 78 | 70 72 65 73 73 69 6f 6e |es of ex|pression|
|00000780| 31 20 61 6e 64 20 65 78 | 70 72 65 73 73 69 6f 6e |1 and ex|pression|
|00000790| 32 2e 0d 45 78 61 6d 70 | 6c 65 73 09 33 20 2a 20 |2..Examp|les.3 * |
|000007a0| 30 2e 35 0d 09 c8 20 31 | 2e 35 0d 54 68 65 20 6e |0.5... 1|.5.The n|
|000007b0| 75 6d 62 65 72 20 33 20 | 69 73 20 d2 70 72 6f 6d |umber 3 |is .prom|
|000007c0| 6f 74 65 64 d3 20 74 6f | 20 61 20 64 6f 75 62 6c |oted. to| a doubl|
|000007d0| 65 2c 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 30 |e, the t|ype of 0|
|000007e0| 2e 35 2c 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |.5, in o|rder to |
|000007f0| 70 65 72 66 6f 72 6d 20 | 74 68 65 20 6d 75 6c 74 |perform |the mult|
|00000800| 69 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 0d 22 61 62 |iplicati|on..."ab|
|00000810| 63 22 20 2a 20 22 64 65 | 66 22 0d 09 c7 0d 54 68 |c" * "de|f"....Th|
|00000820| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 67 65 6e |is state|ment gen|
|00000830| 65 72 61 74 65 73 20 61 | 6e 20 65 72 72 6f 72 3b |erates a|n error;|
|00000840| 20 6f 6e 6c 79 20 6e 75 | 6d 62 65 72 73 20 63 61 | only nu|mbers ca|
|00000850| 6e 20 62 65 20 75 73 65 | 64 20 61 73 20 6d 75 6c |n be use|d as mul|
|00000860| 74 69 70 6c 69 63 61 74 | 69 6f 6e 20 6f 70 65 72 |tiplicat|ion oper|
|00000870| 61 6e 64 73 2e 0d 4e 6f | 74 65 73 09 55 73 65 72 |ands..No|tes.User|
|00000880| 54 61 6c 6b 20 65 6d 70 | 6c 6f 79 73 20 61 75 74 |Talk emp|loys aut|
|00000890| 6f 6d 61 74 69 63 20 74 | 79 70 65 20 63 6f 65 72 |omatic t|ype coer|
|000008a0| 63 69 6f 6e 20 77 68 65 | 6e 20 65 76 61 6c 75 61 |cion whe|n evalua|
|000008b0| 74 69 6e 67 20 61 72 69 | 74 68 6d 65 74 69 63 20 |ting ari|thmetic |
|000008c0| 61 6e 64 20 63 6f 6d 70 | 61 72 61 74 69 76 65 20 |and comp|arative |
|000008d0| 6f 70 65 72 61 74 69 6f | 6e 73 3b 20 74 68 65 20 |operatio|ns; the |
|000008e0| 74 77 6f 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |two expr|essions |
|000008f0| 6e 65 65 64 20 6e 6f 74 | 20 62 65 20 6f 66 20 74 |need not| be of t|
|00000900| 68 65 20 73 61 6d 65 20 | 74 79 70 65 20 74 6f 20 |he same |type to |
|00000910| 62 65 20 6d 75 6c 74 69 | 70 6c 69 65 64 20 74 6f |be multi|plied to|
|00000920| 67 65 74 68 65 72 2e 20 | 47 65 6e 65 72 61 6c 6c |gether. |Generall|
|00000930| 79 2c 20 74 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |y, the r|esulting|
|00000940| 20 74 79 70 65 20 69 73 | 20 74 68 65 20 6d 6f 72 | type is| the mor|
|00000950| 65 20 63 6f 6d 70 6c 65 | 78 20 74 79 70 65 2c 20 |e comple|x type, |
|00000960| 74 68 65 20 6f 6e 65 20 | 74 68 61 74 20 63 61 6e |the one |that can|
|00000970| 20 6d 6f 73 74 20 72 65 | 61 64 69 6c 79 20 72 65 | most re|adily re|
|00000980| 70 72 65 73 65 6e 74 20 | 62 6f 74 68 20 76 61 6c |present |both val|
|00000990| 75 65 73 2e 0d 4f 6e 6c | 79 20 6e 75 6d 65 72 69 |ues..Onl|y numeri|
|000009a0| 63 2d 63 6f 6d 70 61 74 | 69 62 6c 65 20 74 79 70 |c-compat|ible typ|
|000009b0| 65 73 20 d1 20 73 68 6f | 72 74 2c 20 6c 6f 6e 67 |es . sho|rt, long|
|000009c0| 2c 20 73 69 6e 67 6c 65 | 2c 20 64 6f 75 62 6c 65 |, single|, double|
|000009d0| 2c 20 64 61 74 65 2c 20 | 65 74 63 2e 20 d1 20 63 |, date, |etc. . c|
|000009e0| 61 6e 20 62 65 20 6d 75 | 6c 74 69 70 6c 69 65 64 |an be mu|ltiplied|
|000009f0| 2e 0d 53 65 65 20 41 6c | 73 6f 09 2b 0d d0 0d 2f |..See Al|so.+.../|
|00000a00| 0d 25 0d 0d 56 65 72 62 | 09 2f 0d 53 79 6e 74 61 |.%..Verb|./.Synta|
|00000a10| 78 09 65 78 70 72 65 73 | 73 69 6f 6e 31 20 2f 20 |x.expres|sion1 / |
|00000a20| 65 78 70 72 65 73 73 69 | 6f 6e 32 0d 41 63 74 69 |expressi|on2.Acti|
|00000a30| 6f 6e 09 54 68 65 20 61 | 72 69 74 68 6d 65 74 69 |on.The a|rithmeti|
|00000a40| 63 20 64 69 76 69 73 69 | 6f 6e 20 6f 70 65 72 61 |c divisi|on opera|
|00000a50| 74 6f 72 20 79 69 65 6c | 64 73 20 74 68 65 20 72 |tor yiel|ds the r|
|00000a60| 65 73 75 6c 74 20 6f 66 | 20 64 69 76 69 64 69 6e |esult of| dividin|
|00000a70| 67 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 65 |g the va|lue of e|
|00000a80| 78 70 72 65 73 73 69 6f | 6e 31 20 62 79 20 74 68 |xpressio|n1 by th|
|00000a90| 65 20 76 61 6c 75 65 20 | 6f 66 20 65 78 70 72 65 |e value |of expre|
|00000aa0| 73 73 69 6f 6e 32 2e 0d | 45 78 61 6d 70 6c 65 73 |ssion2..|Examples|
|00000ab0| 09 31 30 20 2f 20 33 0d | 09 c8 20 33 0d 54 68 65 |.10 / 3.|.. 3.The|
|00000ac0| 20 72 65 73 75 6c 74 20 | 6f 66 20 69 6e 74 65 67 | result |of integ|
|00000ad0| 65 72 20 64 69 76 69 73 | 69 6f 6e 20 69 73 20 74 |er divis|ion is t|
|00000ae0| 72 75 6e 63 61 74 65 64 | 2e 0d 0d 31 30 20 2f 20 |runcated|...10 / |
|00000af0| 33 2e 30 0d 09 c8 20 33 | 2e 33 33 33 33 0d 54 68 |3.0... 3|.3333.Th|
|00000b00| 65 20 6e 75 6d 62 65 72 | 20 31 30 20 69 73 20 d2 |e number| 10 is .|
|00000b10| 70 72 6f 6d 6f 74 65 64 | d3 20 74 6f 20 61 20 64 |promoted|. to a d|
|00000b20| 6f 75 62 6c 65 2c 20 74 | 68 65 20 74 79 70 65 20 |ouble, t|he type |
|00000b30| 6f 66 20 33 2e 30 2c 20 | 69 6e 20 6f 72 64 65 72 |of 3.0, |in order|
|00000b40| 20 74 6f 20 70 65 72 66 | 6f 72 6d 20 74 68 65 20 | to perf|orm the |
|00000b50| 64 69 76 69 73 69 6f 6e | 2e 0d 0d 6c 6f 6e 67 20 |division|...long |
|00000b60| 28 63 6c 6f 63 6b 2e 6e | 6f 77 20 28 29 20 2f 20 |(clock.n|ow () / |
|00000b70| 33 36 30 30 29 0d 09 c8 | 20 37 37 30 31 39 39 0d |3600)...| 770199.|
|00000b80| 54 68 69 73 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |This exp|ression |
|00000b90| 79 69 65 6c 64 73 20 74 | 68 65 20 6e 75 6d 62 65 |yields t|he numbe|
|00000ba0| 72 20 6f 66 20 68 6f 75 | 72 73 20 74 68 61 74 20 |r of hou|rs that |
|00000bb0| 68 61 76 65 20 70 61 73 | 73 65 64 20 73 69 6e 63 |have pas|sed sinc|
|00000bc0| 65 20 6d 69 64 6e 69 67 | 68 74 2c 20 4a 61 6e 20 |e midnig|ht, Jan |
|00000bd0| 31 2c 20 31 39 30 34 2e | 0d 4e 6f 74 65 73 09 55 |1, 1904.|.Notes.U|
|00000be0| 73 65 72 54 61 6c 6b 20 | 65 6d 70 6c 6f 79 73 20 |serTalk |employs |
|00000bf0| 61 75 74 6f 6d 61 74 69 | 63 20 74 79 70 65 20 63 |automati|c type c|
|00000c00| 6f 65 72 63 69 6f 6e 20 | 77 68 65 6e 20 65 76 61 |oercion |when eva|
|00000c10| 6c 75 61 74 69 6e 67 20 | 61 72 69 74 68 6d 65 74 |luating |arithmet|
|00000c20| 69 63 20 61 6e 64 20 63 | 6f 6d 70 61 72 61 74 69 |ic and c|omparati|
|00000c30| 76 65 20 6f 70 65 72 61 | 74 69 6f 6e 73 3b 20 74 |ve opera|tions; t|
|00000c40| 68 65 20 74 77 6f 20 65 | 78 70 72 65 73 73 69 6f |he two e|xpressio|
|00000c50| 6e 73 20 6f 72 20 74 68 | 65 20 64 69 76 69 73 69 |ns or th|e divisi|
|00000c60| 6f 6e 20 6f 70 65 72 61 | 74 69 6f 6e 20 6e 65 65 |on opera|tion nee|
|00000c70| 64 20 6e 6f 74 20 62 65 | 20 6f 66 20 74 68 65 20 |d not be| of the |
|00000c80| 73 61 6d 65 20 74 79 70 | 65 2e 20 47 65 6e 65 72 |same typ|e. Gener|
|00000c90| 61 6c 6c 79 2c 20 74 68 | 65 20 72 65 73 75 6c 74 |ally, th|e result|
|00000ca0| 69 6e 67 20 74 79 70 65 | 20 69 73 20 74 68 65 20 |ing type| is the |
|00000cb0| 6d 6f 72 65 20 63 6f 6d | 70 6c 65 78 20 74 79 70 |more com|plex typ|
|00000cc0| 65 2c 20 74 68 65 20 6f | 6e 65 20 74 68 61 74 20 |e, the o|ne that |
|00000cd0| 63 61 6e 20 6d 6f 73 74 | 20 72 65 61 64 69 6c 79 |can most| readily|
|00000ce0| 20 72 65 70 72 65 73 65 | 6e 74 20 62 6f 74 68 20 | represe|nt both |
|00000cf0| 76 61 6c 75 65 73 2e 0d | 4f 6e 6c 79 20 6e 75 6d |values..|Only num|
|00000d00| 65 72 69 63 2d 63 6f 6d | 70 61 74 69 62 6c 65 20 |eric-com|patible |
|00000d10| 74 79 70 65 73 20 d1 20 | 73 68 6f 72 74 2c 20 6c |types . |short, l|
|00000d20| 6f 6e 67 2c 20 73 69 6e | 67 6c 65 2c 20 64 6f 75 |ong, sin|gle, dou|
|00000d30| 62 6c 65 2c 20 64 61 74 | 65 2c 20 65 74 63 2e 20 |ble, dat|e, etc. |
|00000d40| d1 20 63 61 6e 20 62 65 | 20 64 69 76 69 64 65 64 |. can be| divided|
|00000d50| 20 62 79 20 6f 6e 65 20 | 61 6e 6f 74 68 65 72 2e | by one |another.|
|00000d60| 0d 53 65 65 20 41 6c 73 | 6f 09 2b 0d d0 0d 2a 0d |.See Als|o.+...*.|
|00000d70| 25 0d 0d 56 65 72 62 09 | 3d 0d 53 79 6e 74 61 78 |%..Verb.|=.Syntax|
|00000d80| 09 69 64 65 6e 74 69 66 | 69 65 72 20 3d 20 65 78 |.identif|ier = ex|
|00000d90| 70 72 65 73 73 69 6f 6e | 0d 41 63 74 69 6f 6e 09 |pression|.Action.|
|00000da0| 45 76 61 6c 75 61 74 65 | 73 20 65 78 70 72 65 73 |Evaluate|s expres|
|00000db0| 73 69 6f 6e 20 61 6e 64 | 20 61 73 73 69 67 6e 73 |sion and| assigns|
|00000dc0| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 76 | the res|ulting v|
|00000dd0| 61 6c 75 65 20 74 6f 20 | 69 64 65 6e 74 69 66 69 |alue to |identifi|
|00000de0| 65 72 2e 0d 45 78 61 6d | 70 6c 65 73 09 6c 6f 63 |er..Exam|ples.loc|
|00000df0| 61 6c 20 28 78 29 3b 0d | 78 20 3d 20 33 20 2a 20 |al (x);.|x = 3 * |
|00000e00| 34 0d 09 c8 20 31 32 0d | 54 68 65 20 61 73 73 69 |4... 12.|The assi|
|00000e10| 67 6e 6d 65 6e 74 20 73 | 74 61 74 65 6d 65 6e 74 |gnment s|tatement|
|00000e20| 20 63 61 75 73 65 73 20 | 74 68 65 20 76 61 6c 75 | causes |the valu|
|00000e30| 65 20 6f 66 20 74 68 65 | 20 65 78 70 72 65 73 73 |e of the| express|
|00000e40| 69 6f 6e 20 d2 33 20 2a | 20 34 d3 20 74 6f 20 62 |ion .3 *| 4. to b|
|00000e50| 65 20 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 |e stored| in the |
|00000e60| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 20 d2 |local va|riable .|
|00000e70| 78 d3 2e 0d 0d 73 63 72 | 61 74 63 68 70 61 64 2e |x....scr|atchpad.|
|00000e80| 77 68 65 6e 20 3d 20 63 | 6c 6f 63 6b 2e 6e 6f 77 |when = c|lock.now|
|00000e90| 20 28 29 0d 09 c8 20 31 | 31 2f 31 31 2f 39 31 3b | ()... 1|1/11/91;|
|00000ea0| 20 37 3a 33 36 20 50 4d | 0d 49 6e 20 74 68 69 73 | 7:36 PM|.In this|
|00000eb0| 20 63 61 73 65 20 74 68 | 65 20 65 78 70 72 65 73 | case th|e expres|
|00000ec0| 73 69 6f 6e 20 d2 63 6c | 6f 63 6b 2e 6e 6f 77 20 |sion .cl|ock.now |
|00000ed0| 28 29 d3 20 79 69 65 6c | 64 65 64 20 61 20 64 61 |(). yiel|ded a da|
|00000ee0| 74 65 20 76 61 6c 75 65 | 2c 20 77 68 69 63 68 20 |te value|, which |
|00000ef0| 77 61 73 20 74 68 65 6e | 20 61 73 73 69 67 6e 65 |was then| assigne|
|00000f00| 64 20 74 6f 20 74 68 65 | 20 63 65 6c 6c 20 6e 61 |d to the| cell na|
|00000f10| 6d 65 64 20 d2 77 68 65 | 6e d3 20 69 6e 20 74 68 |med .whe|n. in th|
|00000f20| 65 20 74 61 62 6c 65 20 | 6e 61 6d 65 64 20 d2 73 |e table |named .s|
|00000f30| 63 72 61 74 63 68 70 61 | 64 2e d3 20 28 54 68 65 |cratchpa|d.. (The|
|00000f40| 20 d2 77 68 65 6e d3 20 | 63 65 6c 6c 20 6e 65 65 | .when. |cell nee|
|00000f50| 64 20 6e 6f 74 20 68 61 | 76 65 20 61 6c 72 65 61 |d not ha|ve alrea|
|00000f60| 64 79 20 65 78 69 73 74 | 65 64 2e 29 0d 4e 6f 74 |dy exist|ed.).Not|
|00000f70| 65 73 09 54 68 65 20 69 | 64 65 6e 74 69 66 69 65 |es.The i|dentifie|
|00000f80| 72 20 6e 65 65 64 20 6e | 6f 74 20 73 70 65 63 69 |r need n|ot speci|
|00000f90| 66 79 20 61 6e 20 65 78 | 69 73 74 69 6e 67 20 64 |fy an ex|isting d|
|00000fa0| 61 74 61 62 61 73 65 20 | 63 65 6c 6c 3b 20 74 68 |atabase |cell; th|
|00000fb0| 65 20 61 73 73 69 67 6e | 6d 65 6e 74 20 73 74 61 |e assign|ment sta|
|00000fc0| 74 65 6d 65 6e 74 20 77 | 69 6c 6c 20 63 72 65 61 |tement w|ill crea|
|00000fd0| 74 65 20 61 6e 20 69 74 | 65 6d 20 77 69 74 68 20 |te an it|em with |
|00000fe0| 74 68 65 20 67 69 76 65 | 6e 20 6e 61 6d 65 20 69 |the give|n name i|
|00000ff0| 6e 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |n the sp|ecified |
|00001000| 74 61 62 6c 65 2e 20 49 | 66 20 6e 6f 20 74 61 62 |table. I|f no tab|
|00001010| 6c 65 20 69 73 20 73 70 | 65 63 69 66 69 65 64 2c |le is sp|ecified,|
|00001020| 20 61 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c | a local| variabl|
|00001030| 65 20 69 73 20 69 6d 70 | 6c 69 63 69 74 6c 79 20 |e is imp|licitly |
|00001040| 64 65 63 6c 61 72 65 64 | 20 69 6e 20 74 68 65 20 |declared| in the |
|00001050| 63 75 72 72 65 6e 74 20 | 73 63 6f 70 65 20 6c 65 |current |scope le|
|00001060| 76 65 6c 2e 20 54 68 61 | 74 20 69 73 2c 20 61 6e |vel. Tha|t is, an|
|00001070| 20 61 73 73 69 67 6e 6d | 65 6e 74 20 74 6f 20 61 | assignm|ent to a|
|00001080| 6e 20 75 6e 64 65 66 69 | 6e 65 64 20 69 64 65 6e |n undefi|ned iden|
|00001090| 74 69 66 69 65 72 20 62 | 65 68 61 76 65 73 20 61 |tifier b|ehaves a|
|000010a0| 73 20 69 66 20 69 74 20 | 77 65 72 65 20 61 20 6c |s if it |were a l|
|000010b0| 6f 63 61 6c 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |ocal dec|laration|
|000010c0| 2e 20 57 68 69 6c 65 20 | 74 68 69 73 20 63 61 6e |. While |this can|
|000010d0| 20 62 65 20 61 20 74 69 | 6d 65 73 61 76 65 72 2c | be a ti|mesaver,|
|000010e0| 20 69 74 20 69 73 20 67 | 65 6e 65 72 61 6c 6c 79 | it is g|enerally|
|000010f0| 20 62 61 64 20 70 72 61 | 63 74 69 63 65 20 74 6f | bad pra|ctice to|
|00001100| 20 63 6f 75 6e 74 20 6f | 6e 20 74 68 69 73 20 62 | count o|n this b|
|00001110| 65 68 61 76 69 6f 72 3b | 20 61 73 20 61 20 73 63 |ehavior;| as a sc|
|00001120| 72 69 70 74 20 62 65 63 | 6f 6d 65 73 20 6d 6f 72 |ript bec|omes mor|
|00001130| 65 20 63 6f 6d 70 6c 65 | 78 2c 20 69 74 20 71 75 |e comple|x, it qu|
|00001140| 69 63 6b 6c 79 20 62 65 | 63 6f 6d 65 73 20 65 61 |ickly be|comes ea|
|00001150| 73 79 20 74 6f 20 75 6e | 69 6e 74 65 6e 74 69 6f |sy to un|intentio|
|00001160| 6e 61 6c 6c 79 20 6d 6f | 64 69 66 79 20 61 20 76 |nally mo|dify a v|
|00001170| 61 72 69 61 62 6c 65 20 | 69 6e 20 61 6e 20 65 6e |ariable |in an en|
|00001180| 63 6c 6f 73 69 6e 67 20 | 73 63 6f 70 65 20 6c 65 |closing |scope le|
|00001190| 76 65 6c 2e 0d 53 65 65 | 20 41 6c 73 6f 09 6c 6f |vel..See| Also.lo|
|000011a0| 63 61 6c 0d 0d 56 65 72 | 62 09 3d 3d 0d 53 79 6e |cal..Ver|b.==.Syn|
|000011b0| 74 61 78 09 65 78 70 72 | 65 73 73 69 6f 6e 31 20 |tax.expr|ession1 |
|000011c0| 3d 3d 20 65 78 70 72 65 | 73 73 69 6f 6e 32 0d 65 |== expre|ssion2.e|
|000011d0| 78 70 72 65 73 73 69 6f | 6e 31 20 65 71 75 61 6c |xpressio|n1 equal|
|000011e0| 73 20 65 78 70 72 65 73 | 73 69 6f 6e 32 0d 41 63 |s expres|sion2.Ac|
|000011f0| 74 69 6f 6e 09 54 68 65 | 20 65 71 75 61 6c 69 74 |tion.The| equalit|
|00001200| 79 20 6f 70 65 72 61 74 | 6f 72 20 79 69 65 6c 64 |y operat|or yield|
|00001210| 73 20 74 68 65 20 62 6f | 6f 6c 65 61 6e 20 76 61 |s the bo|olean va|
|00001220| 6c 75 65 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |lue true| if the |
|00001230| 76 61 6c 75 65 20 6f 66 | 20 65 78 70 72 65 73 73 |value of| express|
|00001240| 69 6f 6e 31 20 61 6e 64 | 20 74 68 65 20 76 61 6c |ion1 and| the val|
|00001250| 75 65 20 6f 66 20 65 78 | 70 72 65 73 73 69 6f 6e |ue of ex|pression|
|00001260| 32 20 61 72 65 20 74 68 | 65 20 73 61 6d 65 2e 0d |2 are th|e same..|
|00001270| 45 78 61 6d 70 6c 65 73 | 09 66 69 6c 65 2e 74 79 |Examples|.file.ty|
|00001280| 70 65 20 28 22 6d 79 46 | 69 6c 65 22 29 20 65 71 |pe ("myF|ile") eq|
|00001290| 75 61 6c 73 20 27 54 45 | 58 54 27 0d 09 c8 20 74 |uals 'TE|XT'... t|
|000012a0| 72 75 65 0d 54 68 69 73 | 20 65 78 70 72 65 73 73 |rue.This| express|
|000012b0| 69 6f 6e 20 65 76 61 6c | 75 61 74 65 73 20 74 6f |ion eval|uates to|
|000012c0| 20 74 72 75 65 20 69 66 | 20 66 69 6c 65 2e 74 79 | true if| file.ty|
|000012d0| 70 65 20 72 65 74 75 72 | 6e 73 20 d4 54 45 58 54 |pe retur|ns .TEXT|
|000012e0| d5 20 61 73 20 69 74 73 | 20 72 65 73 75 6c 74 2e |. as its| result.|
|000012f0| 0d 0d 32 37 20 3d 3d 20 | 22 32 37 22 0d 09 c8 20 |..27 == |"27"... |
|00001300| 74 72 75 65 0d 57 68 65 | 6e 20 63 6f 65 72 63 65 |true.Whe|n coerce|
|00001310| 64 20 74 6f 20 62 65 20 | 6f 66 20 74 68 65 20 73 |d to be |of the s|
|00001320| 61 6d 65 20 74 79 70 65 | 2c 20 74 68 65 20 74 77 |ame type|, the tw|
|00001330| 6f 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |o repres|entation|
|00001340| 73 20 6f 66 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |s of the| number |
|00001350| 32 37 20 61 72 65 20 65 | 71 75 61 6c 2c 20 61 6e |27 are e|qual, an|
|00001360| 64 20 74 68 65 20 72 65 | 73 75 6c 74 20 6f 66 20 |d the re|sult of |
|00001370| 74 68 65 20 6f 70 65 72 | 61 74 69 6f 6e 20 69 73 |the oper|ation is|
|00001380| 20 74 72 75 65 2e 0d 4e | 6f 74 65 73 09 54 68 65 | true..N|otes.The|
|00001390| 72 65 20 69 73 20 6e 6f | 20 64 69 66 66 65 72 65 |re is no| differe|
|000013a0| 6e 63 65 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |nce betw|een the |
|000013b0| 74 77 6f 20 66 6f 72 6d | 73 2c 20 3d 3d 20 61 6e |two form|s, == an|
|000013c0| 64 20 65 71 75 61 6c 73 | 2e 0d 55 73 65 72 54 61 |d equals|..UserTa|
|000013d0| 6c 6b 20 65 6d 70 6c 6f | 79 73 20 61 75 74 6f 6d |lk emplo|ys autom|
|000013e0| 61 74 69 63 20 74 79 70 | 65 20 63 6f 65 72 63 69 |atic typ|e coerci|
|000013f0| 6f 6e 20 77 68 65 6e 20 | 65 76 61 6c 75 61 74 69 |on when |evaluati|
|00001400| 6e 67 20 61 72 69 74 68 | 6d 65 74 69 63 20 61 6e |ng arith|metic an|
|00001410| 64 20 63 6f 6d 70 61 72 | 61 74 69 76 65 20 6f 70 |d compar|ative op|
|00001420| 65 72 61 74 69 6f 6e 73 | 3b 20 74 68 65 20 74 77 |erations|; the tw|
|00001430| 6f 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 6e 65 |o expres|sions ne|
|00001440| 65 64 20 6e 6f 74 20 62 | 65 20 6f 66 20 74 68 65 |ed not b|e of the|
|00001450| 20 73 61 6d 65 20 74 79 | 70 65 20 66 6f 72 20 74 | same ty|pe for t|
|00001460| 68 65 69 72 20 76 61 6c | 75 65 73 20 74 6f 20 62 |heir val|ues to b|
|00001470| 65 20 d2 65 71 75 61 6c | 2e d3 0d 53 65 65 20 41 |e .equal|...See A|
|00001480| 6c 73 6f 09 3e 0d 3c 0d | 3e 3d 0d 3c 3d 0d ad 0d |lso.>.<.|>=.<=...|
|00001490| 0d 56 65 72 62 09 ad 0d | 53 79 6e 74 61 78 09 65 |.Verb...|Syntax.e|
|000014a0| 78 70 72 65 73 73 69 6f | 6e 31 20 ad 20 65 78 70 |xpressio|n1 . exp|
|000014b0| 72 65 73 73 69 6f 6e 32 | 0d 65 78 70 72 65 73 73 |ression2|.express|
|000014c0| 69 6f 6e 31 20 21 3d 20 | 65 78 70 72 65 73 73 69 |ion1 != |expressi|
|000014d0| 6f 6e 32 0d 65 78 70 72 | 65 73 73 69 6f 6e 31 20 |on2.expr|ession1 |
|000014e0| 6e 6f 74 65 71 75 61 6c | 73 20 65 78 70 72 65 73 |notequal|s expres|
|000014f0| 73 69 6f 6e 32 0d 41 63 | 74 69 6f 6e 09 54 68 65 |sion2.Ac|tion.The|
|00001500| 20 69 6e 65 71 75 61 6c | 69 74 79 20 6f 70 65 72 | inequal|ity oper|
|00001510| 61 74 6f 72 20 79 69 65 | 6c 64 73 20 74 68 65 20 |ator yie|lds the |
|00001520| 62 6f 6f 6c 65 61 6e 20 | 76 61 6c 75 65 20 74 72 |boolean |value tr|
|00001530| 75 65 20 69 66 20 74 68 | 65 20 76 61 6c 75 65 20 |ue if th|e value |
|00001540| 6f 66 20 65 78 70 72 65 | 73 73 69 6f 6e 31 20 61 |of expre|ssion1 a|
|00001550| 6e 64 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |nd the v|alue of |
|00001560| 65 78 70 72 65 73 73 69 | 6f 6e 32 20 61 72 65 20 |expressi|on2 are |
|00001570| 6e 6f 74 20 74 68 65 20 | 73 61 6d 65 2e 0d 45 78 |not the |same..Ex|
|00001580| 61 6d 70 6c 65 73 09 66 | 69 6c 65 2e 74 79 70 65 |amples.f|ile.type|
|00001590| 20 28 22 6d 79 46 69 6c | 65 22 29 20 ad 20 27 54 | ("myFil|e") . 'T|
|000015a0| 45 58 54 27 0d 09 c8 20 | 74 72 75 65 0d 54 68 69 |EXT'... |true.Thi|
|000015b0| 73 20 65 78 70 72 65 73 | 73 69 6f 6e 20 65 76 61 |s expres|sion eva|
|000015c0| 6c 75 61 74 65 73 20 74 | 6f 20 74 72 75 65 20 69 |luates t|o true i|
|000015d0| 66 20 66 69 6c 65 2e 74 | 79 70 65 20 72 65 74 75 |f file.t|ype retu|
|000015e0| 72 6e 73 20 61 6e 79 74 | 68 69 6e 67 20 6f 74 68 |rns anyt|hing oth|
|000015f0| 65 72 20 74 68 61 6e 20 | d4 54 45 58 54 d5 20 61 |er than |.TEXT. a|
|00001600| 73 20 69 74 73 20 72 65 | 73 75 6c 74 2e 0d 0d 22 |s its re|sult..."|
|00001610| 32 37 22 20 6e 6f 74 65 | 71 75 61 6c 73 20 32 37 |27" note|quals 27|
|00001620| 0d 09 c8 20 66 61 6c 73 | 65 0d 57 68 65 6e 20 63 |... fals|e.When c|
|00001630| 6f 65 72 63 65 64 20 74 | 6f 20 62 65 20 6f 66 20 |oerced t|o be of |
|00001640| 74 68 65 20 73 61 6d 65 | 20 74 79 70 65 2c 20 74 |the same| type, t|
|00001650| 68 65 20 74 77 6f 20 72 | 65 70 72 65 73 65 6e 74 |he two r|epresent|
|00001660| 61 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 6e 75 |ations o|f the nu|
|00001670| 6d 62 65 72 20 32 37 20 | 61 72 65 20 65 71 75 61 |mber 27 |are equa|
|00001680| 6c 2c 20 61 6e 64 20 74 | 68 65 20 72 65 73 75 6c |l, and t|he resul|
|00001690| 74 20 6f 66 20 74 68 65 | 20 6f 70 65 72 61 74 69 |t of the| operati|
|000016a0| 6f 6e 20 69 73 20 66 61 | 6c 73 65 2e 0d 4e 6f 74 |on is fa|lse..Not|
|000016b0| 65 73 09 54 68 65 72 65 | 20 69 73 20 6e 6f 20 64 |es.There| is no d|
|000016c0| 69 66 66 65 72 65 6e 63 | 65 20 62 65 74 77 65 65 |ifferenc|e betwee|
|000016d0| 6e 20 74 68 65 20 74 68 | 72 65 65 20 66 6f 72 6d |n the th|ree form|
|000016e0| 73 2c 20 21 3d 2c 20 ad | 20 61 6e 64 20 6e 6f 74 |s, !=, .| and not|
|000016f0| 65 71 75 61 6c 73 2e 0d | 55 73 65 72 54 61 6c 6b |equals..|UserTalk|
|00001700| 20 65 6d 70 6c 6f 79 73 | 20 61 75 74 6f 6d 61 74 | employs| automat|
|00001710| 69 63 20 74 79 70 65 20 | 63 6f 65 72 63 69 6f 6e |ic type |coercion|
|00001720| 20 77 68 65 6e 20 65 76 | 61 6c 75 61 74 69 6e 67 | when ev|aluating|
|00001730| 20 61 72 69 74 68 6d 65 | 74 69 63 20 61 6e 64 20 | arithme|tic and |
|00001740| 63 6f 6d 70 61 72 61 74 | 69 76 65 20 6f 70 65 72 |comparat|ive oper|
|00001750| 61 74 69 6f 6e 73 3b 20 | 69 66 20 74 68 65 20 74 |ations; |if the t|
|00001760| 77 6f 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 61 |wo expre|ssions a|
|00001770| 72 65 20 6f 66 20 64 69 | 66 66 65 72 65 6e 74 20 |re of di|fferent |
|00001780| 74 79 70 65 73 2c 20 69 | 74 20 64 6f 65 73 20 6e |types, i|t does n|
|00001790| 6f 74 20 69 6d 70 6c 79 | 20 69 6e 65 71 75 61 6c |ot imply| inequal|
|000017a0| 69 74 79 2e 0d 54 68 65 | 20 ad 20 73 79 6d 62 6f |ity..The| . symbo|
|000017b0| 6c 20 63 61 6e 20 62 65 | 20 65 6e 74 65 72 65 64 |l can be| entered|
|000017c0| 20 61 74 20 74 68 65 20 | 6b 65 79 62 6f 61 72 64 | at the |keyboard|
|000017d0| 20 77 69 74 68 20 4f 70 | 74 69 6f 6e d0 3d 2e 0d | with Op|tion.=..|
|000017e0| 53 65 65 20 41 6c 73 6f | 09 3e 0d 3c 0d 3e 3d 0d |See Also|.>.<.>=.|
|000017f0| 3c 3d 0d 3d 3d 0d 0d 56 | 65 72 62 09 3c 0d 53 79 |<=.==..V|erb.<.Sy|
|00001800| 6e 74 61 78 09 65 78 70 | 72 65 73 73 69 6f 6e 31 |ntax.exp|ression1|
|00001810| 20 3c 20 65 78 70 72 65 | 73 73 69 6f 6e 32 0d 65 | < expre|ssion2.e|
|00001820| 78 70 72 65 73 73 69 6f | 6e 31 20 6c 65 73 73 74 |xpressio|n1 lesst|
|00001830| 68 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 32 0d |han expr|ession2.|
|00001840| 41 63 74 69 6f 6e 09 54 | 68 69 73 20 63 6f 6d 70 |Action.T|his comp|
|00001850| 61 72 69 73 6f 6e 20 6f | 70 65 72 61 74 6f 72 20 |arison o|perator |
|00001860| 79 69 65 6c 64 73 20 74 | 68 65 20 62 6f 6f 6c 65 |yields t|he boole|
|00001870| 61 6e 20 76 61 6c 75 65 | 20 74 72 75 65 20 69 66 |an value| true if|
|00001880| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 65 78 | the val|ue of ex|
|00001890| 70 72 65 73 73 69 6f 6e | 31 20 69 73 20 6c 65 73 |pression|1 is les|
|000018a0| 73 20 28 73 6d 61 6c 6c | 65 72 29 20 74 68 61 6e |s (small|er) than|
|000018b0| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 65 78 | the val|ue of ex|
|000018c0| 70 72 65 73 73 69 6f 6e | 32 2e 0d 45 78 61 6d 70 |pression|2..Examp|
|000018d0| 6c 65 73 09 66 69 6c 65 | 2e 73 69 7a 65 20 28 22 |les.file|.size ("|
|000018e0| 6d 79 46 69 6c 65 22 29 | 20 3c 20 31 30 30 30 30 |myFile")| < 10000|
|000018f0| 30 30 0d 09 c8 20 74 72 | 75 65 0d 54 68 69 73 20 |00... tr|ue.This |
|00001900| 65 78 70 72 65 73 73 69 | 6f 6e 20 65 76 61 6c 75 |expressi|on evalu|
|00001910| 61 74 65 73 20 74 6f 20 | 74 72 75 65 20 69 66 20 |ates to |true if |
|00001920| 74 68 65 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |the file| contain|
|00001930| 73 20 6c 65 73 73 20 74 | 68 61 6e 20 6f 6e 65 20 |s less t|han one |
|00001940| 6d 69 6c 6c 69 6f 6e 20 | 63 68 61 72 61 63 74 65 |million |characte|
|00001950| 72 73 2e 0d 0d 22 61 62 | 64 22 20 3c 20 22 61 7a |rs..."ab|d" < "az|
|00001960| 7a 22 0d 09 c8 20 74 72 | 75 65 0d 4e 6f 74 65 73 |z"... tr|ue.Notes|
|00001970| 09 54 68 65 72 65 20 69 | 73 20 6e 6f 20 64 69 66 |.There i|s no dif|
|00001980| 66 65 72 65 6e 63 65 20 | 62 65 74 77 65 65 6e 20 |ference |between |
|00001990| 74 68 65 20 74 77 6f 20 | 66 6f 72 6d 73 2c 20 3c |the two |forms, <|
|000019a0| 20 61 6e 64 20 6c 65 73 | 73 74 68 61 6e 2e 0d 53 | and les|sthan..S|
|000019b0| 74 72 69 6e 67 20 63 6f | 6d 70 61 72 69 73 6f 6e |tring co|mparison|
|000019c0| 20 69 73 20 63 61 72 72 | 69 65 64 20 6f 75 74 20 | is carr|ied out |
|000019d0| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|000019e0| 20 41 53 43 49 49 20 73 | 65 71 75 65 6e 63 65 3b | ASCII s|equence;|
|000019f0| 20 74 68 69 73 20 79 69 | 65 6c 64 73 20 61 6c 70 | this yi|elds alp|
|00001a00| 68 61 62 65 74 69 63 61 | 6c 20 72 65 73 75 6c 74 |habetica|l result|
|00001a10| 73 2c 20 62 75 74 20 6c | 6f 77 65 72 63 61 73 65 |s, but l|owercase|
|00001a20| 20 63 68 61 72 61 63 74 | 65 72 73 20 73 6f 72 74 | charact|ers sort|
|00001a30| 20 61 66 74 65 72 20 61 | 6c 6c 20 75 70 70 65 72 | after a|ll upper|
|00001a40| 63 61 73 65 20 63 68 61 | 72 61 63 74 65 72 73 2e |case cha|racters.|
|00001a50| 20 54 68 61 74 20 69 73 | 2c 20 d2 41 d3 20 3c 20 | That is|, .A. < |
|00001a60| d2 5a d3 20 3c 20 d2 61 | d3 20 3c 20 d2 7a d3 2e |.Z. < .a|. < .z..|
|00001a70| 0d 55 73 65 72 54 61 6c | 6b 20 65 6d 70 6c 6f 79 |.UserTal|k employ|
|00001a80| 73 20 61 75 74 6f 6d 61 | 74 69 63 20 74 79 70 65 |s automa|tic type|
|00001a90| 20 63 6f 65 72 63 69 6f | 6e 20 77 68 65 6e 20 65 | coercio|n when e|
|00001aa0| 76 61 6c 75 61 74 69 6e | 67 20 61 72 69 74 68 6d |valuatin|g arithm|
|00001ab0| 65 74 69 63 20 61 6e 64 | 20 63 6f 6d 70 61 72 61 |etic and| compara|
|00001ac0| 74 69 76 65 20 6f 70 65 | 72 61 74 69 6f 6e 73 3b |tive ope|rations;|
|00001ad0| 20 74 68 65 20 74 77 6f | 20 65 78 70 72 65 73 73 | the two| express|
|00001ae0| 69 6f 6e 73 20 6e 65 65 | 64 20 6e 6f 74 20 62 65 |ions nee|d not be|
|00001af0| 20 6f 66 20 74 68 65 20 | 73 61 6d 65 20 74 79 70 | of the |same typ|
|00001b00| 65 20 74 6f 20 62 65 20 | 63 6f 6d 70 61 72 65 64 |e to be |compared|
|00001b10| 2e 0d 53 65 65 20 41 6c | 73 6f 09 3e 0d 3e 3d 0d |..See Al|so.>.>=.|
|00001b20| 3c 3d 0d 3d 3d 0d ad 0d | 0d 56 65 72 62 09 3c 3d |<=.==...|.Verb.<=|
|00001b30| 0d 53 79 6e 74 61 78 09 | 65 78 70 72 65 73 73 69 |.Syntax.|expressi|
|00001b40| 6f 6e 31 20 3c 3d 20 65 | 78 70 72 65 73 73 69 6f |on1 <= e|xpressio|
|00001b50| 6e 32 0d 65 78 70 72 65 | 73 73 69 6f 6e 31 20 b2 |n2.expre|ssion1 .|
|00001b60| 20 65 78 70 72 65 73 73 | 69 6f 6e 32 0d 41 63 74 | express|ion2.Act|
|00001b70| 69 6f 6e 09 54 68 69 73 | 20 63 6f 6d 70 61 72 69 |ion.This| compari|
|00001b80| 73 6f 6e 20 6f 70 65 72 | 61 74 6f 72 20 79 69 65 |son oper|ator yie|
|00001b90| 6c 64 73 20 74 68 65 20 | 62 6f 6f 6c 65 61 6e 20 |lds the |boolean |
|00001ba0| 76 61 6c 75 65 20 74 72 | 75 65 20 69 66 20 74 68 |value tr|ue if th|
|00001bb0| 65 20 76 61 6c 75 65 20 | 6f 66 20 65 78 70 72 65 |e value |of expre|
|00001bc0| 73 73 69 6f 6e 31 20 69 | 73 20 6c 65 73 73 20 28 |ssion1 i|s less (|
|00001bd0| 73 6d 61 6c 6c 65 72 29 | 20 74 68 61 6e 20 6f 72 |smaller)| than or|
|00001be0| 20 65 71 75 61 6c 20 74 | 6f 20 74 68 65 20 76 61 | equal t|o the va|
|00001bf0| 6c 75 65 20 6f 66 20 65 | 78 70 72 65 73 73 69 6f |lue of e|xpressio|
|00001c00| 6e 32 2e 0d 45 78 61 6d | 70 6c 65 73 09 66 69 6c |n2..Exam|ples.fil|
|00001c10| 65 2e 73 69 7a 65 20 28 | 22 6d 79 46 69 6c 65 22 |e.size (|"myFile"|
|00001c20| 29 20 3c 3d 20 31 30 30 | 30 30 30 30 0d 09 c8 20 |) <= 100|0000... |
|00001c30| 74 72 75 65 0d 54 68 69 | 73 20 65 78 70 72 65 73 |true.Thi|s expres|
|00001c40| 73 69 6f 6e 20 65 76 61 | 6c 75 61 74 65 73 20 74 |sion eva|luates t|
|00001c50| 6f 20 74 72 75 65 20 69 | 66 20 74 68 65 20 66 69 |o true i|f the fi|
|00001c60| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 6f 6e 65 20 |le conta|ins one |
|00001c70| 6d 69 6c 6c 69 6f 6e 20 | 6f 72 20 66 65 77 65 72 |million |or fewer|
|00001c80| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0d 0d 22 61 | charact|ers..."a|
|00001c90| 62 63 22 20 b2 20 22 61 | 62 63 22 0d 09 c8 20 74 |bc" . "a|bc"... t|
|00001ca0| 72 75 65 0d 54 68 65 20 | 72 65 73 75 6c 74 20 69 |rue.The |result i|
|00001cb0| 73 20 74 72 75 65 2c 20 | 62 65 63 61 75 73 65 20 |s true, |because |
|00001cc0| 74 68 65 20 74 77 6f 20 | 65 78 70 72 65 73 73 69 |the two |expressi|
|00001cd0| 6f 6e 73 20 61 72 65 20 | 65 71 75 61 6c 2e 0d 4e |ons are |equal..N|
|00001ce0| 6f 74 65 73 09 54 68 65 | 72 65 20 69 73 20 6e 6f |otes.The|re is no|
|00001cf0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 62 65 74 77 | differe|nce betw|
|00001d00| 65 65 6e 20 74 68 65 20 | 74 77 6f 20 66 6f 72 6d |een the |two form|
|00001d10| 73 2c 20 3c 3d 20 61 6e | 64 20 b2 2e 0d 53 74 72 |s, <= an|d ...Str|
|00001d20| 69 6e 67 20 63 6f 6d 70 | 61 72 69 73 6f 6e 20 69 |ing comp|arison i|
|00001d30| 73 20 64 6f 6e 65 20 61 | 63 63 6f 72 64 69 6e 67 |s done a|ccording|
|00001d40| 20 74 6f 20 74 68 65 20 | 41 53 43 49 49 20 73 65 | to the |ASCII se|
|00001d50| 71 75 65 6e 63 65 2e 20 | 54 68 69 73 20 79 69 65 |quence. |This yie|
|00001d60| 6c 64 73 20 61 6c 70 68 | 61 62 65 74 69 63 61 6c |lds alph|abetical|
|00001d70| 20 72 65 73 75 6c 74 73 | 2e 20 4c 6f 77 65 72 63 | results|. Lowerc|
|00001d80| 61 73 65 20 63 68 61 72 | 61 63 74 65 72 73 20 73 |ase char|acters s|
|00001d90| 6f 72 74 20 61 66 74 65 | 72 20 61 6c 6c 20 75 70 |ort afte|r all up|
|00001da0| 70 65 72 63 61 73 65 20 | 63 68 61 72 61 63 74 65 |percase |characte|
|00001db0| 72 73 2c 20 74 68 61 74 | 20 69 73 2c 20 d2 41 d3 |rs, that| is, .A.|
|00001dc0| 20 3c 20 d2 5a d3 20 3c | 20 d2 61 d3 20 3c 20 d2 | < .Z. <| .a. < .|
|00001dd0| 7a d3 2e 0d 55 73 65 72 | 54 61 6c 6b 20 65 6d 70 |z...User|Talk emp|
|00001de0| 6c 6f 79 73 20 61 75 74 | 6f 6d 61 74 69 63 20 74 |loys aut|omatic t|
|00001df0| 79 70 65 20 63 6f 65 72 | 63 69 6f 6e 20 77 68 65 |ype coer|cion whe|
|00001e00| 6e 20 65 76 61 6c 75 61 | 74 69 6e 67 20 61 72 69 |n evalua|ting ari|
|00001e10| 74 68 6d 65 74 69 63 20 | 61 6e 64 20 63 6f 6d 70 |thmetic |and comp|
|00001e20| 61 72 61 74 69 76 65 20 | 6f 70 65 72 61 74 69 6f |arative |operatio|
|00001e30| 6e 73 3b 20 74 68 65 20 | 74 77 6f 20 65 78 70 72 |ns; the |two expr|
|00001e40| 65 73 73 69 6f 6e 73 20 | 6e 65 65 64 20 6e 6f 74 |essions |need not|
|00001e50| 20 62 65 20 6f 66 20 74 | 68 65 20 73 61 6d 65 20 | be of t|he same |
|00001e60| 74 79 70 65 20 74 6f 20 | 62 65 20 63 6f 6d 70 61 |type to |be compa|
|00001e70| 72 65 64 2e 0d 54 68 65 | 20 b2 20 73 79 6d 62 6f |red..The| . symbo|
|00001e80| 6c 20 63 61 6e 20 62 65 | 20 65 6e 74 65 72 65 64 |l can be| entered|
|00001e90| 20 61 74 20 74 68 65 20 | 6b 65 79 62 6f 61 72 64 | at the |keyboard|
|00001ea0| 20 77 69 74 68 20 4f 70 | 74 69 6f 6e d0 3c 0d 53 | with Op|tion.<.S|
|00001eb0| 65 65 20 41 6c 73 6f 09 | 3e 0d 3e 3d 0d 3c 0d 3d |ee Also.|>.>=.<.=|
|00001ec0| 3d 0d ad 0d 0d 56 65 72 | 62 09 3e 0d 53 79 6e 74 |=....Ver|b.>.Synt|
|00001ed0| 61 78 09 65 78 70 72 65 | 73 73 69 6f 6e 31 20 3e |ax.expre|ssion1 >|
|00001ee0| 20 65 78 70 72 65 73 73 | 69 6f 6e 32 0d 65 78 70 | express|ion2.exp|
|00001ef0| 72 65 73 73 69 6f 6e 31 | 20 67 72 65 61 74 65 72 |ression1| greater|
|00001f00| 74 68 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 32 |than exp|ression2|
|00001f10| 0d 41 63 74 69 6f 6e 09 | 54 68 69 73 20 63 6f 6d |.Action.|This com|
|00001f20| 70 61 72 69 73 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |parison |operator|
|00001f30| 20 79 69 65 6c 64 73 20 | 74 68 65 20 62 6f 6f 6c | yields |the bool|
|00001f40| 65 61 6e 20 76 61 6c 75 | 65 20 74 72 75 65 20 69 |ean valu|e true i|
|00001f50| 66 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 65 |f the va|lue of e|
|00001f60| 78 70 72 65 73 73 69 6f | 6e 31 20 69 73 20 67 72 |xpressio|n1 is gr|
|00001f70| 65 61 74 65 72 20 28 6c | 61 72 67 65 72 29 20 74 |eater (l|arger) t|
|00001f80| 68 61 6e 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |han the |value of|
|00001f90| 20 65 78 70 72 65 73 73 | 69 6f 6e 32 2e 0d 45 78 | express|ion2..Ex|
|00001fa0| 61 6d 70 6c 65 73 09 66 | 69 6c 65 2e 73 69 7a 65 |amples.f|ile.size|
|00001fb0| 20 28 22 6d 79 46 69 6c | 65 22 29 20 3e 20 31 30 | ("myFil|e") > 10|
|00001fc0| 30 30 30 30 30 0d 09 c8 | 20 74 72 75 65 0d 54 68 |00000...| true.Th|
|00001fd0| 69 73 20 65 78 70 72 65 | 73 73 69 6f 6e 20 65 76 |is expre|ssion ev|
|00001fe0| 61 6c 75 61 74 65 73 20 | 74 6f 20 74 72 75 65 20 |aluates |to true |
|00001ff0| 69 66 20 66 69 6c 65 2e | 73 69 7a 65 20 72 65 74 |if file.|size ret|
|00002000| 75 72 6e 73 20 61 20 76 | 61 6c 75 65 20 6c 61 72 |urns a v|alue lar|
|00002010| 67 65 72 20 74 68 61 6e | 20 6f 6e 65 20 6d 69 6c |ger than| one mil|
|00002020| 6c 69 6f 6e 2e 0d 0d 22 | 61 62 64 63 22 20 3e 20 |lion..."|abdc" > |
|00002030| 22 61 22 0d 09 c8 20 74 | 72 75 65 0d 4e 6f 74 65 |"a"... t|rue.Note|
|00002040| 73 09 54 68 65 72 65 20 | 69 73 20 6e 6f 20 64 69 |s.There |is no di|
|00002050| 66 66 65 72 65 6e 63 65 | 20 62 65 74 77 65 65 6e |fference| between|
|00002060| 20 74 68 65 20 74 77 6f | 20 66 6f 72 6d 73 2c 20 | the two| forms, |
|00002070| 3c 20 61 6e 64 20 67 72 | 65 61 74 65 72 74 68 61 |< and gr|eatertha|
|00002080| 6e 2e 0d 53 74 72 69 6e | 67 20 63 6f 6d 70 61 72 |n..Strin|g compar|
|00002090| 69 73 6f 6e 20 69 73 20 | 63 61 72 72 69 65 64 20 |ison is |carried |
|000020a0| 6f 75 74 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |out acco|rding to|
|000020b0| 20 74 68 65 20 41 53 43 | 49 49 20 73 65 71 75 65 | the ASC|II seque|
|000020c0| 6e 63 65 3b 20 74 68 69 | 73 20 79 69 65 6c 64 73 |nce; thi|s yields|
|000020d0| 20 61 6c 70 68 61 62 65 | 74 69 63 61 6c 20 72 65 | alphabe|tical re|
|000020e0| 73 75 6c 74 73 2c 20 62 | 75 74 20 6c 6f 77 65 72 |sults, b|ut lower|
|000020f0| 63 61 73 65 20 63 68 61 | 72 61 63 74 65 72 73 20 |case cha|racters |
|00002100| 73 6f 72 74 20 61 66 74 | 65 72 20 61 6c 6c 20 75 |sort aft|er all u|
|00002110| 70 70 65 72 63 61 73 65 | 20 63 68 61 72 61 63 74 |ppercase| charact|
|00002120| 65 72 73 2c 20 74 68 61 | 74 20 69 73 2c 20 d2 41 |ers, tha|t is, .A|
|00002130| d3 20 3c 20 d2 5a d3 20 | 3c 20 d2 61 d3 20 3c 20 |. < .Z. |< .a. < |
|00002140| d2 7a d3 2e 0d 55 73 65 | 72 54 61 6c 6b 20 65 6d |.z...Use|rTalk em|
|00002150| 70 6c 6f 79 73 20 61 75 | 74 6f 6d 61 74 69 63 20 |ploys au|tomatic |
|00002160| 74 79 70 65 20 63 6f 65 | 72 63 69 6f 6e 20 77 68 |type coe|rcion wh|
|00002170| 65 6e 20 65 76 61 6c 75 | 61 74 69 6e 67 20 61 72 |en evalu|ating ar|
|00002180| 69 74 68 6d 65 74 69 63 | 20 61 6e 64 20 63 6f 6d |ithmetic| and com|
|00002190| 70 61 72 61 74 69 76 65 | 20 6f 70 65 72 61 74 69 |parative| operati|
|000021a0| 6f 6e 73 3b 20 74 68 65 | 20 74 77 6f 20 65 78 70 |ons; the| two exp|
|000021b0| 72 65 73 73 69 6f 6e 73 | 20 6e 65 65 64 20 6e 6f |ressions| need no|
|000021c0| 74 20 62 65 20 6f 66 20 | 74 68 65 20 73 61 6d 65 |t be of |the same|
|000021d0| 20 74 79 70 65 20 74 6f | 20 62 65 20 63 6f 6d 70 | type to| be comp|
|000021e0| 61 72 65 64 2e 0d 53 65 | 65 20 41 6c 73 6f 09 3c |ared..Se|e Also.<|
|000021f0| 0d 3e 3d 0d 3c 3d 0d 3d | 3d 0d ad 0d 0d 56 65 72 |.>=.<=.=|=....Ver|
|00002200| 62 09 3e 3d 0d 53 79 6e | 74 61 78 09 65 78 70 72 |b.>=.Syn|tax.expr|
|00002210| 65 73 73 69 6f 6e 31 20 | 3e 3d 20 65 78 70 72 65 |ession1 |>= expre|
|00002220| 73 73 69 6f 6e 32 0d 65 | 78 70 72 65 73 73 69 6f |ssion2.e|xpressio|
|00002230| 6e 31 20 b3 20 65 78 70 | 72 65 73 73 69 6f 6e 32 |n1 . exp|ression2|
|00002240| 0d 41 63 74 69 6f 6e 09 | 54 68 69 73 20 63 6f 6d |.Action.|This com|
|00002250| 70 61 72 69 73 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |parison |operator|
|00002260| 20 79 69 65 6c 64 73 20 | 74 68 65 20 62 6f 6f 6c | yields |the bool|
|00002270| 65 61 6e 20 76 61 6c 75 | 65 20 74 72 75 65 20 69 |ean valu|e true i|
|00002280| 66 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 65 |f the va|lue of e|
|00002290| 78 70 72 65 73 73 69 6f | 6e 31 20 69 73 20 67 72 |xpressio|n1 is gr|
|000022a0| 65 61 74 65 72 20 28 6c | 61 72 67 65 72 29 20 74 |eater (l|arger) t|
|000022b0| 68 61 6e 20 6f 72 20 65 | 71 75 61 6c 20 74 6f 20 |han or e|qual to |
|000022c0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 65 78 70 |the valu|e of exp|
|000022d0| 72 65 73 73 69 6f 6e 32 | 2e 0d 45 78 61 6d 70 6c |ression2|..Exampl|
|000022e0| 65 73 09 66 69 6c 65 2e | 73 69 7a 65 20 28 22 6d |es.file.|size ("m|
|000022f0| 79 46 69 6c 65 22 29 20 | 3e 3d 20 31 30 30 30 30 |yFile") |>= 10000|
|00002300| 30 30 0d 09 c8 20 74 72 | 75 65 0d 54 68 69 73 20 |00... tr|ue.This |
|00002310| 65 78 70 72 65 73 73 69 | 6f 6e 20 65 76 61 6c 75 |expressi|on evalu|
|00002320| 61 74 65 73 20 74 6f 20 | 74 72 75 65 20 69 66 20 |ates to |true if |
|00002330| 66 69 6c 65 2e 73 69 7a | 65 20 72 65 74 75 72 6e |file.siz|e return|
|00002340| 73 20 61 20 76 61 6c 75 | 65 20 6c 61 72 67 65 72 |s a valu|e larger|
|00002350| 20 74 68 61 6e 20 6f 72 | 20 65 71 75 61 6c 20 74 | than or| equal t|
|00002360| 6f 20 6f 6e 65 20 6d 69 | 6c 6c 69 6f 6e 2e 0d 0d |o one mi|llion...|
|00002370| 22 61 62 63 22 20 b3 20 | 22 61 62 63 22 0d 09 c8 |"abc" . |"abc"...|
|00002380| 20 74 72 75 65 0d 54 68 | 65 20 72 65 73 75 6c 74 | true.Th|e result|
|00002390| 20 69 73 20 74 72 75 65 | 2c 20 62 65 63 61 75 73 | is true|, becaus|
|000023a0| 65 20 74 68 65 20 74 77 | 6f 20 65 78 70 72 65 73 |e the tw|o expres|
|000023b0| 73 69 6f 6e 73 20 61 72 | 65 20 65 71 75 61 6c 2e |sions ar|e equal.|
|000023c0| 20 0d 4e 6f 74 65 73 09 | 54 68 65 72 65 20 69 73 | .Notes.|There is|
|000023d0| 20 6e 6f 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 | no diff|erence b|
|000023e0| 65 74 77 65 65 6e 20 74 | 68 65 20 74 77 6f 20 66 |etween t|he two f|
|000023f0| 6f 72 6d 73 2c 20 3c 3d | 20 61 6e 64 20 b2 2e 0d |orms, <=| and ...|
|00002400| 53 74 72 69 6e 67 20 63 | 6f 6d 70 61 72 69 73 6f |String c|ompariso|
|00002410| 6e 20 69 73 20 63 61 72 | 72 69 65 64 20 6f 75 74 |n is car|ried out|
|00002420| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 74 68 | accordi|ng to th|
|00002430| 65 20 41 53 43 49 49 20 | 73 65 71 75 65 6e 63 65 |e ASCII |sequence|
|00002440| 2e 20 54 68 69 73 20 79 | 69 65 6c 64 73 20 61 6c |. This y|ields al|
|00002450| 70 68 61 62 65 74 69 63 | 61 6c 20 72 65 73 75 6c |phabetic|al resul|
|00002460| 74 73 2e 20 4c 6f 77 65 | 72 63 61 73 65 20 63 68 |ts. Lowe|rcase ch|
|00002470| 61 72 61 63 74 65 72 73 | 20 73 6f 72 74 20 61 66 |aracters| sort af|
|00002480| 74 65 72 20 61 6c 6c 20 | 75 70 70 65 72 63 61 73 |ter all |uppercas|
|00002490| 65 20 63 68 61 72 61 63 | 74 65 72 73 2c 20 74 68 |e charac|ters, th|
|000024a0| 61 74 20 69 73 2c 20 d2 | 41 d3 20 3c 20 d2 5a d3 |at is, .|A. < .Z.|
|000024b0| 20 3c 20 d2 61 d3 20 3c | 20 d2 7a d3 2e 0d 55 73 | < .a. <| .z...Us|
|000024c0| 65 72 54 61 6c 6b 20 65 | 6d 70 6c 6f 79 73 20 61 |erTalk e|mploys a|
|000024d0| 75 74 6f 6d 61 74 69 63 | 20 74 79 70 65 20 63 6f |utomatic| type co|
|000024e0| 65 72 63 69 6f 6e 20 77 | 68 65 6e 20 65 76 61 6c |ercion w|hen eval|
|000024f0| 75 61 74 69 6e 67 20 61 | 72 69 74 68 6d 65 74 69 |uating a|rithmeti|
|00002500| 63 20 61 6e 64 20 63 6f | 6d 70 61 72 61 74 69 76 |c and co|mparativ|
|00002510| 65 20 6f 70 65 72 61 74 | 69 6f 6e 73 3b 20 74 68 |e operat|ions; th|
|00002520| 65 20 74 77 6f 20 65 78 | 70 72 65 73 73 69 6f 6e |e two ex|pression|
|00002530| 73 20 6e 65 65 64 20 6e | 6f 74 20 62 65 20 6f 66 |s need n|ot be of|
|00002540| 20 74 68 65 20 73 61 6d | 65 20 74 79 70 65 20 74 | the sam|e type t|
|00002550| 6f 20 62 65 20 63 6f 6d | 70 61 72 65 64 2e 0d 54 |o be com|pared..T|
|00002560| 68 65 20 b3 20 73 79 6d | 62 6f 6c 20 63 61 6e 20 |he . sym|bol can |
|00002570| 62 65 20 65 6e 74 65 72 | 65 64 20 61 74 20 74 68 |be enter|ed at th|
|00002580| 65 20 6b 65 79 62 6f 61 | 72 64 20 77 69 74 68 20 |e keyboa|rd with |
|00002590| 4f 70 74 69 6f 6e d0 3e | 0d 53 65 65 20 41 6c 73 |Option.>|.See Als|
|000025a0| 6f 09 3e 0d 3c 0d 3c 3d | 0d 3d 3d 0d ad 0d 0d 56 |o.>.<.<=|.==....V|
|000025b0| 65 72 62 09 6e 6f 74 0d | 53 79 6e 74 61 78 09 6e |erb.not.|Syntax.n|
|000025c0| 6f 74 20 65 78 70 72 65 | 73 73 69 6f 6e 0d 21 65 |ot expre|ssion.!e|
|000025d0| 78 70 72 65 73 73 69 6f | 6e 0d 41 63 74 69 6f 6e |xpressio|n.Action|
|000025e0| 09 54 68 65 20 6c 6f 67 | 69 63 61 6c 20 6e 65 67 |.The log|ical neg|
|000025f0| 61 74 69 6f 6e 20 28 62 | 6f 6f 6c 65 61 6e 20 d2 |ation (b|oolean .|
|00002600| 6e 6f 74 d3 29 20 6f 70 | 65 72 61 74 6f 72 2c 20 |not.) op|erator, |
|00002610| 79 69 65 6c 64 73 20 74 | 68 65 20 62 6f 6f 6c 65 |yields t|he boole|
|00002620| 61 6e 20 76 61 6c 75 65 | 20 74 72 75 65 20 69 66 |an value| true if|
|00002630| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 65 76 61 6c | express|ion eval|
|00002640| 75 61 74 65 73 20 74 6f | 20 66 61 6c 73 65 2c 20 |uates to| false, |
|00002650| 6f 72 20 66 61 6c 73 65 | 20 69 66 20 65 78 70 72 |or false| if expr|
|00002660| 65 73 73 69 6f 6e 20 65 | 76 61 6c 75 61 74 65 73 |ession e|valuates|
|00002670| 20 74 6f 20 74 72 75 65 | 2e 0d 45 78 61 6d 70 6c | to true|..Exampl|
|00002680| 65 73 09 6e 6f 74 20 66 | 69 6c 65 2e 65 78 69 73 |es.not f|ile.exis|
|00002690| 74 73 20 28 22 6d 79 46 | 69 6c 65 22 29 0d 54 68 |ts ("myF|ile").Th|
|000026a0| 69 73 20 65 78 70 72 65 | 73 73 69 6f 6e 20 65 76 |is expre|ssion ev|
|000026b0| 61 6c 75 61 74 65 73 20 | 74 6f 20 74 72 75 65 20 |aluates |to true |
|000026c0| 69 66 20 74 68 65 20 66 | 69 6c 65 20 64 6f 65 73 |if the f|ile does|
|000026d0| 20 6e 6f 74 20 65 78 69 | 73 74 3b 20 69 66 20 74 | not exi|st; if t|
|000026e0| 68 65 20 66 69 6c 65 20 | 64 6f 65 73 20 65 78 69 |he file |does exi|
|000026f0| 73 74 2c 20 69 74 20 65 | 76 61 6c 75 61 74 65 73 |st, it e|valuates|
|00002700| 20 74 6f 20 66 61 6c 73 | 65 2e 0d 4e 6f 74 65 73 | to fals|e..Notes|
|00002710| 09 54 68 65 72 65 20 69 | 73 20 6e 6f 20 64 69 66 |.There i|s no dif|
|00002720| 66 65 72 65 6e 63 65 20 | 62 65 74 77 65 65 6e 20 |ference |between |
|00002730| 74 68 65 20 74 77 6f 20 | 66 6f 72 6d 73 2c 20 21 |the two |forms, !|
|00002740| 20 61 6e 64 20 6e 6f 74 | 2e 0d 53 65 65 20 41 6c | and not|..See Al|
|00002750| 73 6f 09 61 6e 64 20 20 | 20 0d 6f 72 0d 0d 56 65 |so.and | .or..Ve|
|00002760| 72 62 09 28 29 0d 53 79 | 6e 74 61 78 09 69 64 65 |rb.().Sy|ntax.ide|
|00002770| 6e 74 69 66 69 65 72 20 | 28 65 78 70 72 65 73 73 |ntifier |(express|
|00002780| 69 6f 6e 31 2c 20 2e 2e | 2e 2c 20 65 78 70 72 65 |ion1, ..|., expre|
|00002790| 73 73 69 6f 6e 4e 29 0d | 41 63 74 69 6f 6e 09 49 |ssionN).|Action.I|
|000027a0| 6e 76 6f 6b 65 73 20 74 | 68 65 20 73 63 72 69 70 |nvokes t|he scrip|
|000027b0| 74 20 6e 61 6d 65 64 20 | 62 79 20 69 64 65 6e 74 |t named |by ident|
|000027c0| 69 66 69 65 72 2c 20 70 | 61 73 73 69 6e 67 20 74 |ifier, p|assing t|
|000027d0| 68 65 20 76 61 6c 75 65 | 73 20 72 65 73 75 6c 74 |he value|s result|
|000027e0| 69 6e 67 20 66 72 6f 6d | 20 65 78 70 72 65 73 73 |ing from| express|
|000027f0| 69 6f 6e 31 20 74 68 72 | 6f 75 67 68 20 65 78 70 |ion1 thr|ough exp|
|00002800| 72 65 73 73 69 6f 6e 4e | 20 61 73 20 70 61 72 61 |ressionN| as para|
|00002810| 6d 65 74 65 72 73 2e 20 | 54 68 65 20 6e 75 6d 62 |meters. |The numb|
|00002820| 65 72 20 6f 66 20 70 61 | 72 61 6d 65 74 65 72 20 |er of pa|rameter |
|00002830| 70 72 6f 76 69 64 65 64 | 20 6d 75 73 74 20 6d 61 |provided| must ma|
|00002840| 74 63 68 20 74 68 65 20 | 6e 75 6d 62 65 72 20 65 |tch the |number e|
|00002850| 78 70 65 63 74 65 64 20 | 62 79 20 74 68 65 20 73 |xpected |by the s|
|00002860| 63 72 69 70 74 2c 20 61 | 73 20 64 65 66 69 6e 65 |cript, a|s define|
|00002870| 64 20 69 6e 20 69 74 73 | 20 d2 6f 6e d3 20 73 74 |d in its| .on. st|
|00002880| 61 74 65 6d 65 6e 74 20 | 73 63 72 69 70 74 20 68 |atement |script h|
|00002890| 65 61 64 65 72 2e 20 54 | 68 65 20 76 61 6c 75 65 |eader. T|he value|
|000028a0| 20 72 65 74 75 72 6e 65 | 64 20 62 79 20 74 68 65 | returne|d by the|
|000028b0| 20 73 63 72 69 70 74 20 | 62 65 63 6f 6d 65 73 20 | script |becomes |
|000028c0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|000028d0| 20 73 63 72 69 70 74 20 | 63 61 6c 6c 20 65 78 70 | script |call exp|
|000028e0| 72 65 73 73 69 6f 6e 2e | 0d 45 78 61 6d 70 6c 65 |ression.|.Example|
|000028f0| 73 09 63 6c 6f 63 6b 2e | 6e 6f 77 20 28 29 0d 09 |s.clock.|now ()..|
|00002900| c8 20 31 31 2f 31 31 2f | 39 31 3b 20 37 3a 35 31 |. 11/11/|91; 7:51|
|00002910| 20 50 4d 0d 48 65 72 65 | 20 77 65 d5 72 65 20 63 | PM.Here| we.re c|
|00002920| 61 6c 6c 69 6e 67 20 74 | 68 65 20 62 75 69 6c 74 |alling t|he built|
|00002930| 2d 69 6e 20 76 65 72 62 | 20 63 6c 6f 63 6b 2e 6e |-in verb| clock.n|
|00002940| 6f 77 3b 20 74 68 65 20 | 72 65 73 75 6c 74 20 6f |ow; the |result o|
|00002950| 66 20 74 68 65 20 63 61 | 6c 6c 20 69 73 20 74 68 |f the ca|ll is th|
|00002960| 65 20 76 61 6c 75 65 20 | 72 65 74 75 72 6e 65 64 |e value |returned|
|00002970| 20 62 79 20 74 68 65 20 | 76 65 72 62 2e 20 4e 6f | by the |verb. No|
|00002980| 74 65 20 74 68 61 74 20 | 74 68 65 20 70 61 72 65 |te that |the pare|
|00002990| 6e 74 68 65 73 69 73 20 | 6e 6f 74 61 74 69 6f 6e |nthesis |notation|
|000029a0| 20 6d 75 73 74 20 62 65 | 20 75 73 65 64 20 74 6f | must be| used to|
|000029b0| 20 69 6e 64 69 63 61 74 | 65 20 74 68 61 74 20 77 | indicat|e that w|
|000029c0| 65 20 61 72 65 20 6d 61 | 6b 69 6e 67 20 61 20 63 |e are ma|king a c|
|000029d0| 61 6c 6c 20 74 6f 20 74 | 68 65 20 76 65 72 62 2c |all to t|he verb,|
|000029e0| 20 65 76 65 6e 20 74 68 | 6f 75 67 68 20 69 74 20 | even th|ough it |
|000029f0| 74 61 6b 65 73 20 6e 6f | 20 70 61 72 61 6d 65 74 |takes no| paramet|
|00002a00| 65 72 73 2e 0d 0d 6f 6e | 20 61 64 64 54 68 72 65 |ers...on| addThre|
|00002a10| 65 20 28 6e 31 2c 20 6e | 32 2c 20 6e 33 29 7b 0d |e (n1, n|2, n3){.|
|00002a20| 09 72 65 74 75 72 6e 20 | 28 6e 31 20 2b 20 6e 32 |.return |(n1 + n2|
|00002a30| 20 2b 20 6e 33 29 7d 3b | 0d 74 6f 74 61 6c 20 3d | + n3)};|.total =|
|00002a40| 20 61 64 64 54 68 72 65 | 65 20 28 31 2c 20 32 2c | addThre|e (1, 2,|
|00002a50| 20 33 29 0d 09 c8 20 36 | 0d 54 68 69 73 20 65 78 | 3)... 6|.This ex|
|00002a60| 61 6d 70 6c 65 20 69 6c | 6c 75 73 74 72 61 74 65 |ample il|lustrate|
|00002a70| 73 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |s the co|rrespond|
|00002a80| 65 6e 63 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ence bet|ween the|
|00002a90| 20 70 61 72 61 6d 65 74 | 65 72 20 6c 69 73 74 20 | paramet|er list |
|00002aa0| 70 72 6f 76 69 64 65 64 | 20 77 68 65 6e 20 63 61 |provided| when ca|
|00002ab0| 6c 6c 69 6e 67 20 61 20 | 73 63 72 69 70 74 20 77 |lling a |script w|
|00002ac0| 69 74 68 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |ith the |paramete|
|00002ad0| 72 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 69 6e |r declar|ation in|
|00002ae0| 20 74 68 65 20 73 63 72 | 69 70 74 d5 73 20 64 65 | the scr|ipt.s de|
|00002af0| 66 69 6e 69 6e 67 20 d2 | 6f 6e d3 20 73 74 61 74 |fining .|on. stat|
|00002b00| 65 6d 65 6e 74 2e 0d 4e | 6f 74 65 73 09 46 6f 72 |ement..N|otes.For|
|00002b10| 67 65 74 74 69 6e 67 20 | 74 6f 20 70 72 6f 76 69 |getting |to provi|
|00002b20| 64 65 20 61 6e 20 65 6d | 70 74 79 20 70 61 69 72 |de an em|pty pair|
|00002b30| 20 6f 66 20 70 61 72 65 | 6e 74 68 65 73 65 73 20 | of pare|ntheses |
|00002b40| 77 68 65 6e 20 6e 6f 20 | 70 61 72 61 6d 65 74 65 |when no |paramete|
|00002b50| 72 73 20 61 72 65 20 72 | 65 71 75 69 72 65 64 20 |rs are r|equired |
|00002b60| 69 73 20 61 20 63 6f 6d | 6d 6f 6e 20 73 63 72 69 |is a com|mon scri|
|00002b70| 70 74 69 6e 67 20 65 72 | 72 6f 72 20 d1 20 77 61 |pting er|ror . wa|
|00002b80| 74 63 68 20 66 6f 72 20 | 69 74 2e 0d 53 65 65 20 |tch for |it..See |
|00002b90| 41 6c 73 6f 09 6f 6e 0d | 0d 56 65 72 62 09 2b 2b |Also.on.|.Verb.++|
|00002ba0| 0d 53 79 6e 74 61 78 09 | 2b 2b 69 64 65 6e 74 69 |.Syntax.|++identi|
|00002bb0| 66 69 65 72 0d 69 64 65 | 6e 74 69 66 69 65 72 2b |fier.ide|ntifier+|
|00002bc0| 2b 0d 41 63 74 69 6f 6e | 09 54 68 65 20 69 6e 63 |+.Action|.The inc|
|00002bd0| 72 65 6d 65 6e 74 20 6f | 70 65 72 61 74 6f 72 20 |rement o|perator |
|00002be0| 61 64 64 73 20 74 68 65 | 20 6e 75 6d 65 72 69 63 |adds the| numeric|
|00002bf0| 20 76 61 6c 75 65 20 31 | 20 74 6f 20 69 64 65 6e | value 1| to iden|
|00002c00| 74 69 66 69 65 72 2e 20 | 49 6e 20 74 68 65 20 66 |tifier. |In the f|
|00002c10| 69 72 73 74 20 63 61 73 | 65 2c 20 77 68 65 72 65 |irst cas|e, where|
|00002c20| 20 74 68 65 20 69 6e 63 | 72 65 6d 65 6e 74 20 6f | the inc|rement o|
|00002c30| 70 65 72 61 74 6f 72 20 | 61 70 70 65 61 72 73 20 |perator |appears |
|00002c40| 62 65 66 6f 72 65 20 69 | 64 65 6e 74 69 66 69 65 |before i|dentifie|
|00002c50| 72 2c 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |r, the v|alue of |
|00002c60| 74 68 65 20 69 6e 63 72 | 65 6d 65 6e 74 20 65 78 |the incr|ement ex|
|00002c70| 70 72 65 73 73 69 6f 6e | 20 69 73 20 74 68 65 20 |pression| is the |
|00002c80| 76 61 6c 75 65 20 6f 66 | 20 69 64 65 6e 74 69 66 |value of| identif|
|00002c90| 69 65 72 20 61 66 74 65 | 72 20 69 74 20 69 73 20 |ier afte|r it is |
|00002ca0| 69 6e 63 72 65 6d 65 6e | 74 65 64 2e 20 54 68 61 |incremen|ted. Tha|
|00002cb0| 74 20 69 73 2c 20 74 68 | 65 20 69 6e 63 72 65 6d |t is, th|e increm|
|00002cc0| 65 6e 74 20 6f 70 65 72 | 61 74 69 6f 6e 20 74 61 |ent oper|ation ta|
|00002cd0| 6b 65 73 20 70 6c 61 63 | 65 20 66 69 72 73 74 2c |kes plac|e first,|
|00002ce0| 20 61 6e 64 20 74 68 65 | 20 72 65 73 75 6c 74 20 | and the| result |
|00002cf0| 69 73 20 75 73 65 64 20 | 61 73 20 74 68 65 20 76 |is used |as the v|
|00002d00| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 65 78 70 72 |alue of |the expr|
|00002d10| 65 73 73 69 6f 6e 2e 20 | 49 6e 20 74 68 65 20 73 |ession. |In the s|
|00002d20| 65 63 6f 6e 64 20 63 61 | 73 65 2c 20 77 68 65 72 |econd ca|se, wher|
|00002d30| 65 20 74 68 65 20 69 6e | 63 72 65 6d 65 6e 74 20 |e the in|crement |
|00002d40| 6f 70 65 72 61 74 6f 72 | 20 61 70 70 65 61 72 73 |operator| appears|
|00002d50| 20 61 66 74 65 72 20 69 | 64 65 6e 74 69 66 69 65 | after i|dentifie|
|00002d60| 72 2c 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |r, the v|alue of |
|00002d70| 74 68 65 20 69 6e 63 72 | 65 6d 65 6e 74 20 65 78 |the incr|ement ex|
|00002d80| 70 72 65 73 73 69 6f 6e | 20 69 73 20 74 68 65 20 |pression| is the |
|00002d90| 76 61 6c 75 65 20 6f 66 | 20 69 64 65 6e 74 69 66 |value of| identif|
|00002da0| 69 65 72 20 62 65 66 6f | 72 65 20 69 74 20 69 73 |ier befo|re it is|
|00002db0| 20 69 6e 63 72 65 6d 65 | 6e 74 65 64 3b 20 74 68 | increme|nted; th|
|00002dc0| 65 20 69 6e 63 72 65 6d | 65 6e 74 20 6f 70 65 72 |e increm|ent oper|
|00002dd0| 61 74 69 6f 6e 20 74 61 | 6b 65 73 20 70 6c 61 63 |ation ta|kes plac|
|00002de0| 65 20 61 66 74 65 72 20 | 74 68 65 20 65 78 70 72 |e after |the expr|
|00002df0| 65 73 73 69 6f 6e d5 73 | 20 76 61 6c 75 65 20 68 |ession.s| value h|
|00002e00| 61 73 20 62 65 65 6e 20 | 64 65 74 65 72 6d 69 6e |as been |determin|
|00002e10| 65 64 2e 0d 45 78 61 6d | 70 6c 65 73 09 78 20 3d |ed..Exam|ples.x =|
|00002e20| 20 33 3b 20 2b 2b 78 0d | 09 c8 20 34 0d 53 69 6e | 3; ++x.|.. 4.Sin|
|00002e30| 63 65 20 78 20 69 73 20 | d2 70 72 65 2d 69 6e 63 |ce x is |.pre-inc|
|00002e40| 72 65 6d 65 6e 74 65 64 | 2c d3 20 69 74 73 20 66 |remented|,. its f|
|00002e50| 69 6e 61 6c 20 76 61 6c | 75 65 20 6f 66 20 34 20 |inal val|ue of 4 |
|00002e60| 69 73 20 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |is the r|esult of|
|00002e70| 20 74 68 65 20 65 78 70 | 72 65 73 73 69 6f 6e 2e | the exp|ression.|
|00002e80| 0d 0d 78 20 3d 20 33 3b | 20 78 2b 2b 0d 09 c8 20 |..x = 3;| x++... |
|00002e90| 33 0d 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 |3.In thi|s case, |
|00002ea0| 78 20 69 73 20 d2 70 6f | 73 74 2d 69 6e 63 72 65 |x is .po|st-incre|
|00002eb0| 6d 65 6e 74 65 64 2c d3 | 20 61 6e 64 20 74 68 65 |mented,.| and the|
|00002ec0| 20 72 65 73 75 6c 74 20 | 6f 66 20 74 68 65 20 65 | result |of the e|
|00002ed0| 78 70 72 65 73 73 69 6f | 6e 20 69 73 20 69 74 73 |xpressio|n is its|
|00002ee0| 20 76 61 6c 75 65 20 62 | 65 66 6f 72 65 20 31 20 | value b|efore 1 |
|00002ef0| 69 73 20 61 64 64 65 64 | 20 74 6f 20 69 74 2e 20 |is added| to it. |
|00002f00| 49 74 73 20 76 61 6c 75 | 65 20 61 66 74 65 72 20 |Its valu|e after |
|00002f10| 74 68 65 20 73 74 61 74 | 65 6d 65 6e 74 20 69 73 |the stat|ement is|
|00002f20| 20 65 78 65 63 75 74 65 | 64 20 69 73 20 73 74 69 | execute|d is sti|
|00002f30| 6c 6c 20 34 2e 0d 4e 6f | 74 65 73 09 41 6e 79 20 |ll 4..No|tes.Any |
|00002f40| 74 79 70 65 20 74 68 61 | 74 20 73 75 70 70 6f 72 |type tha|t suppor|
|00002f50| 74 73 20 61 64 64 69 74 | 69 6f 6e 20 63 61 6e 20 |ts addit|ion can |
|00002f60| 62 65 20 75 73 65 64 20 | 77 69 74 68 20 74 68 65 |be used |with the|
|00002f70| 20 69 6e 63 72 65 6d 65 | 6e 74 20 6f 70 65 72 61 | increme|nt opera|
|00002f80| 74 6f 72 2e 0d 53 65 65 | 20 41 6c 73 6f 09 2b 0d |tor..See| Also.+.|
|00002f90| d0 d0 0d 0d 56 65 72 62 | 09 2d 2d 0d 53 79 6e 74 |....Verb|.--.Synt|
|00002fa0| 61 78 09 d0 d0 69 64 65 | 6e 74 69 66 69 65 72 0d |ax...ide|ntifier.|
|00002fb0| 69 64 65 6e 74 69 66 69 | 65 72 d0 d0 0d 41 63 74 |identifi|er...Act|
|00002fc0| 69 6f 6e 09 54 68 65 20 | 64 65 63 72 65 6d 65 6e |ion.The |decremen|
|00002fd0| 74 20 6f 70 65 72 61 74 | 6f 72 20 73 75 62 74 72 |t operat|or subtr|
|00002fe0| 61 63 74 73 20 74 68 65 | 20 6e 75 6d 65 72 69 63 |acts the| numeric|
|00002ff0| 20 76 61 6c 75 65 20 31 | 20 66 72 6f 6d 20 69 64 | value 1| from id|
|00003000| 65 6e 74 69 66 69 65 72 | 2e 20 49 6e 20 74 68 65 |entifier|. In the|
|00003010| 20 66 69 72 73 74 20 63 | 61 73 65 2c 20 77 68 65 | first c|ase, whe|
|00003020| 72 65 20 74 68 65 20 64 | 65 63 72 65 6d 65 6e 74 |re the d|ecrement|
|00003030| 20 6f 70 65 72 61 74 6f | 72 20 61 70 70 65 61 72 | operato|r appear|
|00003040| 73 20 62 65 66 6f 72 65 | 20 69 64 65 6e 74 69 66 |s before| identif|
|00003050| 69 65 72 2c 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ier, the| value o|
|00003060| 66 20 74 68 65 20 64 65 | 63 72 65 6d 65 6e 74 20 |f the de|crement |
|00003070| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 73 20 74 68 |expressi|on is th|
|00003080| 65 20 76 61 6c 75 65 20 | 6f 66 20 69 64 65 6e 74 |e value |of ident|
|00003090| 69 66 69 65 72 20 61 66 | 74 65 72 20 69 74 20 69 |ifier af|ter it i|
|000030a0| 73 20 64 65 63 72 65 6d | 65 6e 74 65 64 2e 20 54 |s decrem|ented. T|
|000030b0| 68 61 74 20 69 73 2c 20 | 74 68 65 20 64 65 63 72 |hat is, |the decr|
|000030c0| 65 6d 65 6e 74 20 6f 70 | 65 72 61 74 69 6f 6e 20 |ement op|eration |
|000030d0| 74 61 6b 65 73 20 70 6c | 61 63 65 20 66 69 72 73 |takes pl|ace firs|
|000030e0| 74 2c 20 61 6e 64 20 74 | 68 65 20 72 65 73 75 6c |t, and t|he resul|
|000030f0| 74 20 69 73 20 75 73 65 | 64 20 61 73 20 74 68 65 |t is use|d as the|
|00003100| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 65 78 | value o|f the ex|
|00003110| 70 72 65 73 73 69 6f 6e | 2e 20 49 6e 20 74 68 65 |pression|. In the|
|00003120| 20 73 65 63 6f 6e 64 20 | 63 61 73 65 2c 20 77 68 | second |case, wh|
|00003130| 65 72 65 20 74 68 65 20 | 64 65 63 72 65 6d 65 6e |ere the |decremen|
|00003140| 74 20 6f 70 65 72 61 74 | 6f 72 20 61 70 70 65 61 |t operat|or appea|
|00003150| 72 73 20 61 66 74 65 72 | 20 69 64 65 6e 74 69 66 |rs after| identif|
|00003160| 69 65 72 2c 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ier, the| value o|
|00003170| 66 20 74 68 65 20 64 65 | 63 72 65 6d 65 6e 74 20 |f the de|crement |
|00003180| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 73 20 74 68 |expressi|on is th|
|00003190| 65 20 76 61 6c 75 65 20 | 6f 66 20 69 64 65 6e 74 |e value |of ident|
|000031a0| 69 66 69 65 72 20 62 65 | 66 6f 72 65 20 69 74 20 |ifier be|fore it |
|000031b0| 69 73 20 64 65 63 72 65 | 6d 65 6e 74 65 64 3b 20 |is decre|mented; |
|000031c0| 74 68 65 20 64 65 63 72 | 65 6d 65 6e 74 20 6f 70 |the decr|ement op|
|000031d0| 65 72 61 74 69 6f 6e 20 | 74 61 6b 65 73 20 70 6c |eration |takes pl|
|000031e0| 61 63 65 20 61 66 74 65 | 72 20 74 68 65 20 65 78 |ace afte|r the ex|
|000031f0| 70 72 65 73 73 69 6f 6e | d5 73 20 76 61 6c 75 65 |pression|.s value|
|00003200| 20 68 61 73 20 62 65 65 | 6e 20 64 65 74 65 72 6d | has bee|n determ|
|00003210| 69 6e 65 64 2e 0d 45 78 | 61 6d 70 6c 65 73 09 78 |ined..Ex|amples.x|
|00003220| 20 3d 20 33 3b 20 d0 d0 | 78 0d 09 c8 20 32 0d 53 | = 3; ..|x... 2.S|
|00003230| 69 6e 63 65 20 78 20 69 | 73 20 d2 70 72 65 2d 64 |ince x i|s .pre-d|
|00003240| 65 63 72 65 6d 65 6e 74 | 65 64 2c d3 20 69 74 73 |ecrement|ed,. its|
|00003250| 20 66 69 6e 61 6c 20 76 | 61 6c 75 65 20 6f 66 20 | final v|alue of |
|00003260| 32 20 69 73 20 74 68 65 | 20 72 65 73 75 6c 74 20 |2 is the| result |
|00003270| 6f 66 20 74 68 65 20 65 | 78 70 72 65 73 73 69 6f |of the e|xpressio|
|00003280| 6e 2e 0d 0d 78 20 3d 20 | 33 3b 20 78 d0 d0 0d 09 |n...x = |3; x....|
|00003290| c8 20 33 0d 49 6e 20 74 | 68 69 73 20 63 61 73 65 |. 3.In t|his case|
|000032a0| 2c 20 78 20 69 73 20 d2 | 70 6f 73 74 2d 64 65 63 |, x is .|post-dec|
|000032b0| 72 65 6d 65 6e 74 65 64 | 2c d3 20 61 6e 64 20 74 |remented|,. and t|
|000032c0| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|000032d0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 69 73 20 69 | express|ion is i|
|000032e0| 74 73 20 76 61 6c 75 65 | 20 62 65 66 6f 72 65 20 |ts value| before |
|000032f0| 31 20 69 73 20 73 75 62 | 74 72 61 63 74 65 64 20 |1 is sub|tracted |
|00003300| 66 72 6f 6d 20 69 74 2e | 20 49 74 73 20 76 61 6c |from it.| Its val|
|00003310| 75 65 20 61 66 74 65 72 | 20 74 68 65 20 73 74 61 |ue after| the sta|
|00003320| 74 65 6d 65 6e 74 20 69 | 73 20 65 78 65 63 75 74 |tement i|s execut|
|00003330| 65 64 20 69 73 20 73 74 | 69 6c 6c 20 32 2e 0d 4e |ed is st|ill 2..N|
|00003340| 6f 74 65 73 09 41 6e 79 | 20 74 79 70 65 20 74 68 |otes.Any| type th|
|00003350| 61 74 20 73 75 70 70 6f | 72 74 73 20 73 75 62 74 |at suppo|rts subt|
|00003360| 72 61 63 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 75 |raction |can be u|
|00003370| 73 65 64 20 77 69 74 68 | 20 74 68 65 20 64 65 63 |sed with| the dec|
|00003380| 72 65 6d 65 6e 74 20 6f | 70 65 72 61 74 6f 72 2e |rement o|perator.|
|00003390| 0d 53 65 65 20 41 6c 73 | 6f 09 d0 0d 2b 2b 0d 0d |.See Als|o...++..|
|000033a0| 56 65 72 62 09 61 6e 64 | 0d 53 79 6e 74 61 78 09 |Verb.and|.Syntax.|
|000033b0| 65 78 70 72 65 73 73 69 | 6f 6e 31 20 61 6e 64 20 |expressi|on1 and |
|000033c0| 65 78 70 72 65 73 73 69 | 6f 6e 32 0d 65 78 70 72 |expressi|on2.expr|
|000033d0| 65 73 73 69 6f 6e 31 20 | 26 26 20 65 78 70 72 65 |ession1 |&& expre|
|000033e0| 73 73 69 6f 6e 32 0d 41 | 63 74 69 6f 6e 09 54 68 |ssion2.A|ction.Th|
|000033f0| 65 20 6c 6f 67 69 63 61 | 6c 20 63 6f 6e 6a 75 6e |e logica|l conjun|
|00003400| 63 74 69 6f 6e 20 28 62 | 6f 6f 6c 65 61 6e 20 d2 |ction (b|oolean .|
|00003410| 61 6e 64 d3 29 20 6f 70 | 65 72 61 74 6f 72 2c 20 |and.) op|erator, |
|00003420| 79 69 65 6c 64 73 20 74 | 68 65 20 62 6f 6f 6c 65 |yields t|he boole|
|00003430| 61 6e 20 76 61 6c 75 65 | 20 74 72 75 65 20 69 66 |an value| true if|
|00003440| 20 62 6f 74 68 20 65 78 | 70 72 65 73 73 69 6f 6e | both ex|pression|
|00003450| 31 20 61 6e 64 20 65 78 | 70 72 65 73 73 69 6f 6e |1 and ex|pression|
|00003460| 32 20 65 76 61 6c 75 61 | 74 65 20 74 6f 20 74 72 |2 evalua|te to tr|
|00003470| 75 65 2c 20 66 61 6c 73 | 65 20 6f 74 68 65 72 77 |ue, fals|e otherw|
|00003480| 69 73 65 2e 0d 45 78 61 | 6d 70 6c 65 73 09 66 69 |ise..Exa|mples.fi|
|00003490| 6c 65 2e 65 78 69 73 74 | 73 20 28 22 6d 79 46 69 |le.exist|s ("myFi|
|000034a0| 6c 65 22 29 20 61 6e 64 | 20 28 21 66 69 6c 65 2e |le") and| (!file.|
|000034b0| 65 78 69 73 74 73 20 28 | 22 6d 79 46 69 6c 65 22 |exists (|"myFile"|
|000034c0| 29 29 0d 09 c8 20 66 61 | 6c 73 65 0d 54 68 69 73 |))... fa|lse.This|
|000034d0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 61 6c 77 61 | express|ion alwa|
|000034e0| 79 73 20 65 76 61 6c 75 | 61 74 65 73 20 74 6f 20 |ys evalu|ates to |
|000034f0| 66 61 6c 73 65 2c 20 62 | 65 63 61 75 73 65 20 69 |false, b|ecause i|
|00003500| 74 20 69 73 20 69 6d 70 | 6f 73 73 69 62 6c 65 20 |t is imp|ossible |
|00003510| 66 6f 72 20 62 6f 74 68 | 20 65 78 70 72 65 73 73 |for both| express|
|00003520| 69 6f 6e 73 20 74 6f 20 | 62 65 20 74 72 75 65 20 |ions to |be true |
|00003530| 61 74 20 74 68 65 20 73 | 61 6d 65 20 74 69 6d 65 |at the s|ame time|
|00003540| 2e 0d 0d 66 69 6c 65 2e | 65 78 69 73 74 73 20 28 |...file.|exists (|
|00003550| 22 6d 79 46 69 6c 65 22 | 29 20 61 6e 64 20 28 66 |"myFile"|) and (f|
|00003560| 69 6c 65 2e 74 79 70 65 | 20 28 22 6d 79 46 69 6c |ile.type| ("myFil|
|00003570| 65 22 29 20 3d 3d 20 27 | 54 45 58 54 27 29 0d 09 |e") == '|TEXT')..|
|00003580| c8 20 74 72 75 65 0d 54 | 68 69 73 20 65 78 70 72 |. true.T|his expr|
|00003590| 65 73 73 69 6f 6e 20 65 | 76 61 6c 75 61 74 65 73 |ession e|valuates|
|000035a0| 20 74 6f 20 74 72 75 65 | 20 69 66 20 d2 6d 79 46 | to true| if .myF|
|000035b0| 69 6c 65 d3 20 65 78 69 | 73 74 73 20 61 6e 64 20 |ile. exi|sts and |
|000035c0| 69 73 20 61 20 74 65 78 | 74 20 66 69 6c 65 2e 0d |is a tex|t file..|
|000035d0| 4e 6f 74 65 73 09 54 68 | 65 72 65 20 69 73 20 6e |Notes.Th|ere is n|
|000035e0| 6f 20 64 69 66 66 65 72 | 65 6e 63 65 20 62 65 74 |o differ|ence bet|
|000035f0| 77 65 65 6e 20 74 68 65 | 20 74 77 6f 20 66 6f 72 |ween the| two for|
|00003600| 6d 73 2c 20 26 26 20 61 | 6e 64 20 61 6e 64 2e 0d |ms, && a|nd and..|
|00003610| 55 73 65 72 54 61 6c 6b | 20 65 6d 70 6c 6f 79 73 |UserTalk| employs|
|00003620| 20 d2 73 68 6f 72 74 2d | 63 69 72 63 75 69 74 d3 | .short-|circuit.|
|00003630| 20 65 76 61 6c 75 61 74 | 69 6f 6e 20 6f 66 20 62 | evaluat|ion of b|
|00003640| 6f 6f 6c 65 61 6e 20 65 | 78 70 72 65 73 73 69 6f |oolean e|xpressio|
|00003650| 6e 73 2e 20 49 6e 20 6f | 74 68 65 72 20 77 6f 72 |ns. In o|ther wor|
|00003660| 64 73 2c 20 69 66 20 65 | 78 70 72 65 73 73 69 6f |ds, if e|xpressio|
|00003670| 6e 31 20 6f 66 20 61 6e | 20 61 6e 64 20 6f 70 65 |n1 of an| and ope|
|00003680| 72 61 74 69 6f 6e 20 65 | 76 61 6c 75 61 74 65 73 |ration e|valuates|
|00003690| 20 74 6f 20 66 61 6c 73 | 65 2c 20 65 78 70 72 65 | to fals|e, expre|
|000036a0| 73 73 69 6f 6e 32 20 77 | 69 6c 6c 20 6e 6f 74 20 |ssion2 w|ill not |
|000036b0| 62 65 20 65 76 61 6c 75 | 61 74 65 64 2c 20 73 69 |be evalu|ated, si|
|000036c0| 6e 63 65 20 69 74 20 63 | 61 6e 20 61 6c 72 65 61 |nce it c|an alrea|
|000036d0| 64 79 20 62 65 20 64 65 | 74 65 72 6d 69 6e 65 64 |dy be de|termined|
|000036e0| 20 74 68 61 74 20 74 68 | 65 20 72 65 73 75 6c 74 | that th|e result|
|000036f0| 20 6f 66 20 74 68 65 20 | 6f 70 65 72 61 74 69 6f | of the |operatio|
|00003700| 6e 20 77 69 6c 6c 20 62 | 65 20 66 61 6c 73 65 2e |n will b|e false.|
|00003710| 20 49 6e 20 65 78 61 6d | 70 6c 65 20 23 32 20 61 | In exam|ple #2 a|
|00003720| 62 6f 76 65 2c 20 74 68 | 65 20 63 61 6c 6c 20 74 |bove, th|e call t|
|00003730| 6f 20 66 69 6c 65 2e 74 | 79 70 65 20 77 69 6c 6c |o file.t|ype will|
|00003740| 20 6e 65 76 65 72 20 62 | 65 20 6d 61 64 65 20 69 | never b|e made i|
|00003750| 66 20 66 69 6c 65 2e 65 | 78 69 73 74 73 20 72 65 |f file.e|xists re|
|00003760| 74 75 72 6e 73 20 66 61 | 6c 73 65 20 28 69 2e 65 |turns fa|lse (i.e|
|00003770| 2e 2c 20 74 68 65 20 66 | 69 6c 65 20 64 6f 65 73 |., the f|ile does|
|00003780| 6e d5 74 20 65 78 69 73 | 74 29 2e 0d 53 65 65 20 |n.t exis|t)..See |
|00003790| 41 6c 73 6f 09 6f 72 0d | 6e 6f 74 0d 0d 56 65 72 |Also.or.|not..Ver|
|000037a0| 62 09 6f 72 0d 53 79 6e | 74 61 78 09 65 78 70 72 |b.or.Syn|tax.expr|
|000037b0| 65 73 73 69 6f 6e 31 20 | 6f 72 20 65 78 70 72 65 |ession1 |or expre|
|000037c0| 73 73 69 6f 6e 32 0d 65 | 78 70 72 65 73 73 69 6f |ssion2.e|xpressio|
|000037d0| 6e 31 20 7c 7c 20 65 78 | 70 72 65 73 73 69 6f 6e |n1 || ex|pression|
|000037e0| 32 0d 41 63 74 69 6f 6e | 09 54 68 65 20 6c 6f 67 |2.Action|.The log|
|000037f0| 69 63 61 6c 20 64 69 73 | 6a 75 6e 63 74 69 6f 6e |ical dis|junction|
|00003800| 20 28 62 6f 6f 6c 65 61 | 6e 20 d2 6f 72 d3 29 20 | (boolea|n .or.) |
|00003810| 6f 70 65 72 61 74 6f 72 | 2c 20 79 69 65 6c 64 73 |operator|, yields|
|00003820| 20 74 68 65 20 62 6f 6f | 6c 65 61 6e 20 76 61 6c | the boo|lean val|
|00003830| 75 65 20 74 72 75 65 20 | 69 66 20 65 69 74 68 65 |ue true |if eithe|
|00003840| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 31 20 6f 72 |r expres|sion1 or|
|00003850| 20 65 78 70 72 65 73 73 | 69 6f 6e 32 20 65 76 61 | express|ion2 eva|
|00003860| 6c 75 61 74 65 73 20 74 | 6f 20 74 72 75 65 2c 20 |luates t|o true, |
|00003870| 66 61 6c 73 65 20 6f 74 | 68 65 72 77 69 73 65 2e |false ot|herwise.|
|00003880| 0d 45 78 61 6d 70 6c 65 | 73 09 66 69 6c 65 2e 65 |.Example|s.file.e|
|00003890| 78 69 73 74 73 20 28 22 | 6d 79 46 69 6c 65 22 29 |xists ("|myFile")|
|000038a0| 20 6f 72 20 21 66 69 6c | 65 2e 65 78 69 73 74 73 | or !fil|e.exists|
|000038b0| 20 28 22 6d 79 46 69 6c | 65 22 29 0d 09 c8 20 74 | ("myFil|e")... t|
|000038c0| 72 75 65 0d 54 68 69 73 | 20 65 78 70 72 65 73 73 |rue.This| express|
|000038d0| 69 6f 6e 20 61 6c 77 61 | 79 73 20 65 76 61 6c 75 |ion alwa|ys evalu|
|000038e0| 61 74 65 73 20 74 6f 20 | 74 72 75 65 2c 20 62 65 |ates to |true, be|
|000038f0| 63 61 75 73 65 20 69 74 | 20 69 73 20 69 6d 70 6f |cause it| is impo|
|00003900| 73 73 69 62 6c 65 20 66 | 6f 72 20 62 6f 74 68 20 |ssible f|or both |
|00003910| 65 78 70 72 65 73 73 69 | 6f 6e 73 20 74 6f 20 62 |expressi|ons to b|
|00003920| 65 20 66 61 6c 73 65 20 | 61 74 20 74 68 65 20 73 |e false |at the s|
|00003930| 61 6d 65 20 74 69 6d 65 | 2e 0d 0d 66 69 6c 65 2e |ame time|...file.|
|00003940| 69 73 46 6f 6c 64 65 72 | 20 28 22 6d 79 46 69 6c |isFolder| ("myFil|
|00003950| 65 22 29 20 6f 72 20 28 | 66 69 6c 65 2e 74 79 70 |e") or (|file.typ|
|00003960| 65 20 28 22 6d 79 46 69 | 6c 65 22 29 20 21 3d 20 |e ("myFi|le") != |
|00003970| 27 54 45 58 54 27 29 0d | 09 c8 20 74 72 75 65 0d |'TEXT').|.. true.|
|00003980| 54 68 69 73 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |This exp|ression |
|00003990| 65 76 61 6c 75 61 74 65 | 73 20 74 6f 20 74 72 75 |evaluate|s to tru|
|000039a0| 65 20 69 66 20 d2 6d 79 | 46 69 6c 65 d3 20 69 73 |e if .my|File. is|
|000039b0| 20 61 20 66 6f 6c 64 65 | 72 2c 20 6f 72 20 69 73 | a folde|r, or is|
|000039c0| 20 6e 6f 74 20 61 20 74 | 65 78 74 20 66 69 6c 65 | not a t|ext file|
|000039d0| 2e 0d 4e 6f 74 65 73 09 | 54 68 65 72 65 20 69 73 |..Notes.|There is|
|000039e0| 20 6e 6f 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 | no diff|erence b|
|000039f0| 65 74 77 65 65 6e 20 74 | 68 65 20 74 77 6f 20 66 |etween t|he two f|
|00003a00| 6f 72 6d 73 2c 20 7c 7c | 20 61 6e 64 20 6f 72 2e |orms, ||| and or.|
|00003a10| 0d 55 73 65 72 54 61 6c | 6b 20 65 6d 70 6c 6f 79 |.UserTal|k employ|
|00003a20| 73 20 d2 73 68 6f 72 74 | 2d 63 69 72 63 75 69 74 |s .short|-circuit|
|00003a30| d3 20 65 76 61 6c 75 61 | 74 69 6f 6e 20 6f 66 20 |. evalua|tion of |
|00003a40| 62 6f 6f 6c 65 61 6e 20 | 65 78 70 72 65 73 73 69 |boolean |expressi|
|00003a50| 6f 6e 73 2e 20 54 68 61 | 74 20 6d 65 61 6e 73 20 |ons. Tha|t means |
|00003a60| 74 68 61 74 20 69 66 20 | 65 78 70 72 65 73 73 69 |that if |expressi|
|00003a70| 6f 6e 31 20 6f 66 20 61 | 6e 20 6f 72 20 6f 70 65 |on1 of a|n or ope|
|00003a80| 72 61 74 69 6f 6e 20 65 | 76 61 6c 75 61 74 65 73 |ration e|valuates|
|00003a90| 20 74 6f 20 74 72 75 65 | 2c 20 65 78 70 72 65 73 | to true|, expres|
|00003aa0| 73 69 6f 6e 32 20 77 69 | 6c 6c 20 6e 6f 74 20 62 |sion2 wi|ll not b|
|00003ab0| 65 20 65 76 61 6c 75 61 | 74 65 64 2c 20 73 69 6e |e evalua|ted, sin|
|00003ac0| 63 65 20 69 74 20 63 61 | 6e 20 61 6c 72 65 61 64 |ce it ca|n alread|
|00003ad0| 79 20 62 65 20 64 65 74 | 65 72 6d 69 6e 65 64 20 |y be det|ermined |
|00003ae0| 74 68 61 74 20 74 68 65 | 20 72 65 73 75 6c 74 20 |that the| result |
|00003af0| 6f 66 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |of the o|peration|
|00003b00| 20 77 69 6c 6c 20 62 65 | 20 74 72 75 65 2e 20 53 | will be| true. S|
|00003b10| 6f 20 69 6e 20 65 78 61 | 6d 70 6c 65 20 23 32 20 |o in exa|mple #2 |
|00003b20| 61 62 6f 76 65 2c 20 74 | 68 65 20 63 61 6c 6c 20 |above, t|he call |
|00003b30| 74 6f 20 66 69 6c 65 2e | 74 79 70 65 20 77 69 6c |to file.|type wil|
|00003b40| 6c 20 6e 65 76 65 72 20 | 62 65 20 6d 61 64 65 20 |l never |be made |
|00003b50| 69 66 20 66 69 6c 65 2e | 69 73 46 6f 6c 64 65 72 |if file.|isFolder|
|00003b60| 20 72 65 74 75 72 6e 73 | 20 74 72 75 65 2e 0d 53 | returns| true..S|
|00003b70| 65 65 20 41 6c 73 6f 09 | 61 6e 64 0d 6e 6f 74 0d |ee Also.|and.not.|
|00003b80| 0d 56 65 72 62 09 2e 0d | 53 79 6e 74 61 78 09 69 |.Verb...|Syntax.i|
|00003b90| 64 65 6e 74 69 66 69 65 | 72 31 20 2e 20 69 64 65 |dentifie|r1 . ide|
|00003ba0| 6e 74 69 66 69 65 72 32 | 0d 69 64 65 6e 74 69 66 |ntifier2|.identif|
|00003bb0| 69 65 72 31 20 2e 20 5b | 65 78 70 72 65 73 73 69 |ier1 . [|expressi|
|00003bc0| 6f 6e 32 5d 0d 41 63 74 | 69 6f 6e 09 4e 61 6d 65 |on2].Act|ion.Name|
|00003bd0| 73 20 61 6e 20 4f 62 6a | 65 63 74 20 44 61 74 61 |s an Obj|ect Data|
|00003be0| 62 61 73 65 20 63 65 6c | 6c 2e 20 54 68 65 20 76 |base cel|l. The v|
|00003bf0| 61 6c 75 65 20 6f 66 20 | 61 20 d2 64 6f 74 74 65 |alue of |a .dotte|
|00003c00| 64 2d 49 44 d3 20 65 78 | 70 72 65 73 73 69 6f 6e |d-ID. ex|pression|
|00003c10| 20 69 73 20 74 68 65 20 | 76 61 6c 75 65 20 63 6f | is the |value co|
|00003c20| 6e 74 61 69 6e 65 64 20 | 69 6e 20 74 68 65 20 64 |ntained |in the d|
|00003c30| 61 74 61 62 61 73 65 20 | 63 65 6c 6c 2e 0d 49 6e |atabase |cell..In|
|00003c40| 20 74 68 65 20 66 69 72 | 73 74 20 66 6f 72 6d 20 | the fir|st form |
|00003c50| 61 62 6f 76 65 2c 20 69 | 64 65 6e 74 69 66 69 65 |above, i|dentifie|
|00003c60| 72 31 20 72 65 66 65 72 | 73 20 74 6f 20 61 20 64 |r1 refer|s to a d|
|00003c70| 61 74 61 62 61 73 65 20 | 74 61 62 6c 65 2c 20 61 |atabase |table, a|
|00003c80| 6e 64 20 69 64 65 6e 74 | 69 66 69 65 72 32 20 72 |nd ident|ifier2 r|
|00003c90| 65 66 65 72 73 20 74 6f | 20 61 6e 20 69 74 65 6d |efers to| an item|
|00003ca0| 20 69 6e 20 74 68 61 74 | 20 74 61 62 6c 65 2e 20 | in that| table. |
|00003cb0| 49 6e 20 74 68 65 20 73 | 65 63 6f 6e 64 20 66 6f |In the s|econd fo|
|00003cc0| 72 6d 2c 20 65 78 70 72 | 65 73 73 69 6f 6e 32 20 |rm, expr|ession2 |
|00003cd0| 69 73 20 65 76 61 6c 75 | 61 74 65 64 2c 20 61 6e |is evalu|ated, an|
|00003ce0| 64 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |d the re|sult is |
|00003cf0| 74 72 65 61 74 65 64 20 | 61 73 20 61 20 73 74 72 |treated |as a str|
|00003d00| 69 6e 67 20 61 6e 64 20 | 75 73 65 64 20 74 6f 20 |ing and |used to |
|00003d10| 6e 61 6d 65 20 74 68 65 | 20 74 61 62 6c 65 20 69 |name the| table i|
|00003d20| 74 65 6d 2e 20 49 6e 20 | 65 69 74 68 65 72 20 63 |tem. In |either c|
|00003d30| 61 73 65 2c 20 74 68 65 | 20 69 74 65 6d 20 69 74 |ase, the| item it|
|00003d40| 73 65 6c 66 20 6e 65 65 | 64 20 6e 6f 74 20 61 6c |self nee|d not al|
|00003d50| 72 65 61 64 79 20 65 78 | 69 73 74 20 74 6f 20 62 |ready ex|ist to b|
|00003d60| 65 20 76 61 6c 69 64 2e | 20 49 6e 20 61 6e 20 61 |e valid.| In an a|
|00003d70| 73 73 69 67 6e 6d 65 6e | 74 2c 20 66 6f 72 20 65 |ssignmen|t, for e|
|00003d80| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 61 73 73 69 |xample, |the assi|
|00003d90| 67 6e 6d 65 6e 74 20 73 | 74 61 74 65 6d 65 6e 74 |gnment s|tatement|
|00003da0| 20 69 74 73 65 6c 66 20 | 77 69 6c 6c 20 63 72 65 | itself |will cre|
|00003db0| 61 74 65 20 74 68 65 20 | 6e 61 6d 65 64 20 65 6e |ate the |named en|
|00003dc0| 74 72 79 20 74 6f 20 73 | 74 6f 72 65 20 74 68 65 |try to s|tore the|
|00003dd0| 20 76 61 6c 75 65 2e 0d | 45 78 61 6d 70 6c 65 73 | value..|Examples|
|00003de0| 09 73 63 72 61 74 63 68 | 70 61 64 2e 78 20 3d 20 |.scratch|pad.x = |
|00003df0| 37 0d 41 73 73 69 67 6e | 73 20 74 68 65 20 6e 75 |7.Assign|s the nu|
|00003e00| 6d 65 72 69 63 20 76 61 | 6c 75 65 20 37 20 74 6f |meric va|lue 7 to|
|00003e10| 20 74 68 65 20 69 74 65 | 6d 20 6e 61 6d 65 64 20 | the ite|m named |
|00003e20| d2 78 d3 20 69 6e 20 74 | 68 65 20 74 61 62 6c 65 |.x. in t|he table|
|00003e30| 20 6e 61 6d 65 64 20 d2 | 73 63 72 61 74 63 68 70 | named .|scratchp|
|00003e40| 61 64 2e d3 20 49 66 20 | d2 78 d3 20 61 6c 72 65 |ad.. If |.x. alre|
|00003e50| 61 64 79 20 65 78 69 73 | 74 73 2c 20 69 74 73 20 |ady exis|ts, its |
|00003e60| 70 72 65 76 69 6f 75 73 | 20 76 61 6c 75 65 20 69 |previous| value i|
|00003e70| 73 20 72 65 70 6c 61 63 | 65 64 3b 20 69 74 20 6e |s replac|ed; it n|
|00003e80| 6f 74 2c 20 61 20 6e 65 | 77 20 76 61 6c 75 65 20 |ot, a ne|w value |
|00003e90| 69 73 20 63 72 65 61 74 | 65 64 2e 0d 0d 65 78 61 |is creat|ed...exa|
|00003ea0| 6d 70 6c 65 73 2e 61 67 | 65 0d 09 c8 20 34 36 0d |mples.ag|e... 46.|
|00003eb0| 59 69 65 6c 64 73 20 74 | 68 65 20 76 61 6c 75 65 |Yields t|he value|
|00003ec0| 20 6f 66 20 74 68 65 20 | 64 61 74 61 62 61 73 65 | of the |database|
|00003ed0| 20 63 65 6c 6c 20 6e 61 | 6d 65 64 20 d2 61 67 65 | cell na|med .age|
|00003ee0| d3 20 69 6e 20 74 68 65 | 20 d2 65 78 61 6d 70 6c |. in the| .exampl|
|00003ef0| 65 73 d3 20 74 61 62 6c | 65 2e 0d 0d 73 69 7a 65 |es. tabl|e...size|
|00003f00| 4f 66 20 28 70 65 6f 70 | 6c 65 2e 5b 75 73 65 72 |Of (peop|le.[user|
|00003f10| 2e 69 6e 69 74 69 61 6c | 73 5d 2e 6e 6f 74 65 70 |.initial|s].notep|
|00003f20| 61 64 29 0d 09 c8 20 36 | 35 0d 54 68 69 73 20 65 |ad)... 6|5.This e|
|00003f30| 78 61 6d 70 6c 65 20 64 | 65 6d 6f 6e 73 74 72 61 |xample d|emonstra|
|00003f40| 74 65 73 20 74 68 65 20 | 70 6f 77 65 72 20 6f 66 |tes the |power of|
|00003f50| 20 74 68 65 20 62 72 61 | 63 6b 65 74 20 6e 6f 74 | the bra|cket not|
|00003f60| 61 74 69 6f 6e 2e 20 46 | 69 72 73 74 2c 20 74 68 |ation. F|irst, th|
|00003f70| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 20 d2 75 73 |e expres|sion .us|
|00003f80| 65 72 2e 69 6e 69 74 69 | 61 6c 73 d3 20 69 73 20 |er.initi|als. is |
|00003f90| 65 76 61 6c 75 61 74 65 | 64 2e 20 54 68 65 20 72 |evaluate|d. The r|
|00003fa0| 65 73 75 6c 74 69 6e 67 | 20 76 61 6c 75 65 20 69 |esulting| value i|
|00003fb0| 73 20 75 73 65 64 20 74 | 6f 20 6e 61 6d 65 20 61 |s used t|o name a|
|00003fc0| 6e 20 69 74 65 6d 20 69 | 6e 20 74 68 65 20 d2 70 |n item i|n the .p|
|00003fd0| 65 6f 70 6c 65 d3 20 74 | 61 62 6c 65 2c 20 74 68 |eople. t|able, th|
|00003fe0| 65 20 6f 6e 65 20 62 65 | 6c 6f 6e 67 69 6e 67 20 |e one be|longing |
|00003ff0| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 75 |to the c|urrent u|
|00004000| 73 65 72 2e 20 46 69 6e | 61 6c 6c 79 2c 20 74 68 |ser. Fin|ally, th|
|00004010| 65 20 69 74 65 6d 20 6e | 61 6d 65 64 20 d2 6e 6f |e item n|amed .no|
|00004020| 74 65 70 61 64 d3 20 69 | 73 20 72 65 66 65 72 65 |tepad. i|s refere|
|00004030| 6e 63 65 64 20 69 6e 20 | 74 68 65 20 74 61 62 6c |nced in |the tabl|
|00004040| 65 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 d2 |e specif|ied by .|
|00004050| 70 65 6f 70 6c 65 2e 5b | 75 73 65 72 2e 69 6e 69 |people.[|user.ini|
|00004060| 74 69 61 6c 73 5d 2e d3 | 20 54 68 65 20 72 65 73 |tials]..| The res|
|00004070| 75 6c 74 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 |ult indi|cates th|
|00004080| 61 74 20 74 68 65 20 6f | 75 74 6c 69 6e 65 20 63 |at the o|utline c|
|00004090| 6f 6e 74 61 69 6e 73 20 | 36 35 20 68 65 61 64 69 |ontains |65 headi|
|000040a0| 6e 67 73 2e 0d 4e 6f 74 | 65 73 09 41 73 20 69 6c |ngs..Not|es.As il|
|000040b0| 6c 75 73 74 72 61 74 65 | 64 20 69 6e 20 74 68 65 |lustrate|d in the|
|000040c0| 20 74 68 69 72 64 20 65 | 78 61 6d 70 6c 65 20 61 | third e|xample a|
|000040d0| 62 6f 76 65 2c 20 61 20 | 64 6f 74 74 65 64 2d 49 |bove, a |dotted-I|
|000040e0| 44 20 70 61 69 72 20 63 | 61 6e 20 62 65 20 75 73 |D pair c|an be us|
|000040f0| 65 64 20 61 73 20 74 68 | 65 20 69 64 65 6e 74 69 |ed as th|e identi|
|00004100| 66 69 65 72 20 66 6f 72 | 20 74 68 65 20 74 61 62 |fier for| the tab|
|00004110| 6c 65 20 69 6e 20 61 6e | 6f 74 68 65 72 20 64 6f |le in an|other do|
|00004120| 74 74 65 64 2d 49 44 20 | 70 61 69 72 2e 20 54 68 |tted-ID |pair. Th|
|00004130| 65 20 66 75 6c 6c 20 64 | 61 74 61 62 61 73 65 20 |e full d|atabase |
|00004140| 70 61 74 68 20 74 6f 20 | 61 6e 20 69 74 65 6d 20 |path to |an item |
|00004150| 69 73 20 61 20 73 65 72 | 69 65 73 20 6f 66 20 64 |is a ser|ies of d|
|00004160| 6f 74 74 65 64 2d 49 44 | 73 2c 20 73 74 61 72 74 |otted-ID|s, start|
|00004170| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 72 6f 6f |ing with| the roo|
|00004180| 74 20 74 61 62 6c 65 2e | 20 28 54 68 6f 75 67 68 |t table.| (Though|
|00004190| 2c 20 66 6f 72 20 62 72 | 65 76 69 74 79 2c 20 74 |, for br|evity, t|
|000041a0| 68 65 20 d2 72 6f 6f 74 | d3 20 74 61 62 6c 65 20 |he .root|. table |
|000041b0| 69 74 73 65 6c 66 20 63 | 61 6e 20 62 65 20 d1 20 |itself c|an be . |
|000041c0| 61 6e 64 20 6f 66 74 65 | 6e 20 69 73 20 d1 20 6f |and ofte|n is . o|
|000041d0| 6d 69 74 74 65 64 2e 29 | 0d 53 65 65 20 41 6c 73 |mitted.)|.See Als|
|000041e0| 6f 09 40 0d 3d 0d 0d 56 | 65 72 62 09 40 0d 53 79 |o.@.=..V|erb.@.Sy|
|000041f0| 6e 74 61 78 09 40 69 64 | 65 6e 74 69 66 69 65 72 |ntax.@id|entifier|
|00004200| 0d 41 63 74 69 6f 6e 09 | 54 61 6b 65 73 20 74 68 |.Action.|Takes th|
|00004210| 65 20 61 64 64 72 65 73 | 73 20 6f 66 20 69 64 65 |e addres|s of ide|
|00004220| 6e 74 69 66 69 65 72 2e | 20 54 68 65 20 61 64 64 |ntifier.| The add|
|00004230| 72 65 73 73 20 63 61 6e | 20 62 65 20 75 73 65 64 |ress can| be used|
|00004240| 20 77 69 74 68 20 74 68 | 65 20 64 65 72 65 66 65 | with th|e derefe|
|00004250| 72 65 6e 63 65 20 6f 70 | 65 72 61 74 6f 72 20 28 |rence op|erator (|
|00004260| 5e 29 20 74 6f 20 72 65 | 66 65 72 20 62 61 63 6b |^) to re|fer back|
|00004270| 20 74 6f 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | to the |original|
|00004280| 20 6f 62 6a 65 63 74 20 | 73 70 65 63 69 66 69 65 | object |specifie|
|00004290| 64 20 62 79 20 69 64 65 | 6e 74 69 66 69 65 72 2e |d by ide|ntifier.|
|000042a0| 20 41 64 64 72 65 73 73 | 65 73 20 70 72 6f 76 69 | Address|es provi|
|000042b0| 64 65 20 61 20 77 61 79 | 20 74 6f 20 72 65 66 65 |de a way| to refe|
|000042c0| 72 20 74 6f 20 4f 62 6a | 65 63 74 20 44 61 74 61 |r to Obj|ect Data|
|000042d0| 62 61 73 65 20 63 65 6c | 6c 73 20 72 61 74 68 65 |base cel|ls rathe|
|000042e0| 72 20 74 68 61 6e 20 74 | 68 65 69 72 20 63 6f 6e |r than t|heir con|
|000042f0| 74 65 6e 74 73 2e 20 41 | 20 73 63 72 69 70 74 20 |tents. A| script |
|00004300| 74 68 61 74 20 74 61 6b | 65 73 20 74 68 65 20 61 |that tak|es the a|
|00004310| 64 64 72 65 73 73 20 6f | 66 20 61 6e 20 6f 62 6a |ddress o|f an obj|
|00004320| 65 63 74 20 61 73 20 61 | 20 70 61 72 61 6d 65 74 |ect as a| paramet|
|00004330| 65 72 20 63 61 6e 20 63 | 68 61 6e 67 65 20 74 68 |er can c|hange th|
|00004340| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00004350| 61 74 20 64 61 74 61 62 | 61 73 65 20 6c 6f 63 61 |at datab|ase loca|
|00004360| 74 69 6f 6e 2c 20 77 68 | 69 6c 65 20 61 20 73 63 |tion, wh|ile a sc|
|00004370| 72 69 70 74 20 74 68 61 | 74 20 74 61 6b 65 73 20 |ript tha|t takes |
|00004380| 61 6e 20 6f 62 6a 65 63 | 74 d5 73 20 76 61 6c 75 |an objec|t.s valu|
|00004390| 65 20 61 73 20 61 20 70 | 61 72 61 6d 65 74 65 72 |e as a p|arameter|
|000043a0| 20 77 6f 72 6b 73 20 6f | 6e 6c 79 20 77 69 74 68 | works o|nly with|
|000043b0| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 61 74 20 | a copy |of that |
|000043c0| 76 61 6c 75 65 2e 0d 45 | 78 61 6d 70 6c 65 73 09 |value..E|xamples.|
|000043d0| 6e 61 6d 65 20 3d 20 22 | 22 3b 0d 69 66 20 64 69 |name = "|";.if di|
|000043e0| 61 6c 6f 67 2e 61 73 6b | 20 28 22 57 68 61 74 27 |alog.ask| ("What'|
|000043f0| 73 20 79 6f 75 72 20 6e | 61 6d 65 3f 22 2c 20 40 |s your n|ame?", @|
|00004400| 6e 61 6d 65 29 0d 7b 6d | 73 67 20 28 6e 61 6d 65 |name).{m|sg (name|
|00004410| 29 7d 0d 54 68 65 20 62 | 75 69 6c 74 2d 69 6e 20 |)}.The b|uilt-in |
|00004420| 76 65 72 62 20 64 69 61 | 6c 6f 67 2e 61 73 6b 20 |verb dia|log.ask |
|00004430| 74 61 6b 65 73 20 74 68 | 65 20 61 64 64 72 65 73 |takes th|e addres|
|00004440| 73 20 6f 66 20 61 20 73 | 74 72 69 6e 67 20 61 73 |s of a s|tring as|
|00004450| 20 69 74 73 20 73 65 63 | 6f 6e 64 20 70 61 72 61 | its sec|ond para|
|00004460| 6d 65 74 65 72 2e 20 57 | 68 65 6e 20 70 61 73 73 |meter. W|hen pass|
|00004470| 65 64 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |ed the a|ddress o|
|00004480| 66 20 74 68 65 20 6c 6f | 63 61 6c 20 76 61 72 69 |f the lo|cal vari|
|00004490| 61 62 6c 65 20 d2 6e 61 | 6d 65 2c d3 20 64 69 61 |able .na|me,. dia|
|000044a0| 6c 6f 67 2e 61 73 6b 20 | 69 73 20 61 62 6c 65 20 |log.ask |is able |
|000044b0| 74 6f 20 63 68 61 6e 67 | 65 20 69 74 73 20 76 61 |to chang|e its va|
|000044c0| 6c 75 65 2e 0d 0d 73 61 | 79 69 6e 67 20 3d 20 22 |lue...sa|ying = "|
|000044d0| 41 20 62 69 72 64 20 69 | 6e 20 74 68 65 20 68 61 |A bird i|n the ha|
|000044e0| 6e 64 20 69 73 20 77 6f | 72 74 68 20 74 77 6f 20 |nd is wo|rth two |
|000044f0| 69 6e 20 74 68 65 20 62 | 75 73 68 22 3b 0d 73 74 |in the b|ush";.st|
|00004500| 72 69 6e 67 2e 63 6f 75 | 6e 74 57 6f 72 64 73 20 |ring.cou|ntWords |
|00004510| 28 73 61 79 69 6e 67 29 | 0d 49 6e 20 74 68 69 73 |(saying)|.In this|
|00004520| 20 63 61 73 65 2c 20 74 | 68 65 20 62 75 69 6c 74 | case, t|he built|
|00004530| 2d 69 6e 20 76 65 72 62 | 20 73 74 72 69 6e 67 2e |-in verb| string.|
|00004540| 63 6f 75 6e 74 57 6f 72 | 64 73 20 64 6f 65 73 6e |countWor|ds doesn|
|00004550| d5 74 20 6e 65 65 64 20 | 74 6f 20 62 65 20 61 62 |.t need |to be ab|
|00004560| 6c 65 20 74 6f 20 63 68 | 61 6e 67 65 20 74 68 65 |le to ch|ange the|
|00004570| 20 6f 72 69 67 69 6e 61 | 6c 20 73 74 72 69 6e 67 | origina|l string|
|00004580| 3b 20 69 74 20 6a 75 73 | 74 20 77 61 6e 74 73 20 |; it jus|t wants |
|00004590| 74 6f 20 77 6f 72 6b 20 | 77 69 74 68 20 69 74 73 |to work |with its|
|000045a0| 20 76 61 6c 75 65 2e 20 | 54 68 65 72 65 66 6f 72 | value. |Therefor|
|000045b0| 65 2c 20 77 65 20 64 6f | 6e d5 74 20 75 73 65 20 |e, we do|n.t use |
|000045c0| 74 68 65 20 61 64 64 72 | 65 73 73 20 6f 70 65 72 |the addr|ess oper|
|000045d0| 61 74 6f 72 2e 0d 4e 6f | 74 65 73 09 53 74 72 69 |ator..No|tes.Stri|
|000045e0| 6e 67 73 20 74 68 61 74 | 20 6e 61 6d 65 20 64 61 |ngs that| name da|
|000045f0| 74 61 62 61 73 65 20 63 | 65 6c 6c 73 20 63 61 6e |tabase c|ells can|
|00004600| 20 62 65 20 63 6f 65 72 | 63 65 64 20 74 6f 20 61 | be coer|ced to a|
|00004610| 6e 20 61 64 64 72 65 73 | 73 20 77 69 74 68 20 74 |n addres|s with t|
|00004620| 68 65 20 61 64 64 72 65 | 73 73 20 67 6c 6f 62 61 |he addre|ss globa|
|00004630| 6c 20 76 65 72 62 2e 20 | 41 73 20 61 20 72 65 73 |l verb. |As a res|
|00004640| 75 6c 74 2c 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ult, the| value o|
|00004650| 66 20 61 64 64 72 65 73 | 73 20 28 d2 73 79 73 74 |f addres|s (.syst|
|00004660| 65 6d 2e 76 65 72 62 73 | d3 29 20 69 73 20 65 71 |em.verbs|.) is eq|
|00004670| 75 61 6c 20 74 6f 20 40 | 73 79 73 74 65 6d 2e 76 |ual to @|system.v|
|00004680| 65 72 62 73 2e 0d 53 65 | 65 20 41 6c 73 6f 09 5e |erbs..Se|e Also.^|
|00004690| 0d 0d 56 65 72 62 09 5e | 0d 53 79 6e 74 61 78 09 |..Verb.^|.Syntax.|
|000046a0| 65 78 70 72 65 73 73 69 | 6f 6e 5e 0d 41 63 74 69 |expressi|on^.Acti|
|000046b0| 6f 6e 09 54 68 69 73 20 | 6f 70 65 72 61 74 6f 72 |on.This |operator|
|000046c0| 20 69 73 20 72 65 66 65 | 72 72 65 64 20 74 6f 20 | is refe|rred to |
|000046d0| 61 73 20 74 68 65 20 64 | 65 72 65 66 65 72 65 6e |as the d|ereferen|
|000046e0| 63 65 20 6f 70 65 72 61 | 74 6f 72 2e 20 49 74 20 |ce opera|tor. It |
|000046f0| 65 76 61 6c 75 61 74 65 | 73 20 65 78 70 72 65 73 |evaluate|s expres|
|00004700| 73 69 6f 6e 20 61 6e 64 | 2c 20 69 6e 74 65 72 70 |sion and|, interp|
|00004710| 72 65 74 69 6e 67 20 74 | 68 65 20 72 65 73 75 6c |reting t|he resul|
|00004720| 74 20 61 73 20 74 68 65 | 20 61 64 64 72 65 73 73 |t as the| address|
|00004730| 20 6f 66 20 61 6e 20 4f | 62 6a 65 63 74 20 44 61 | of an O|bject Da|
|00004740| 74 61 62 61 73 65 20 63 | 65 6c 6c 2c 20 79 69 65 |tabase c|ell, yie|
|00004750| 6c 64 73 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |lds the |value of|
|00004760| 20 74 68 61 74 20 63 65 | 6c 6c 2e 0d 45 78 61 6d | that ce|ll..Exam|
|00004770| 70 6c 65 73 09 6c 6f 63 | 61 6c 20 28 61 64 64 72 |ples.loc|al (addr|
|00004780| 20 3d 20 40 65 78 61 6d | 70 6c 65 73 2e 61 67 65 | = @exam|ples.age|
|00004790| 29 3b 0d 78 20 3d 20 61 | 64 64 72 5e 0d 09 c8 20 |);.x = a|ddr^... |
|000047a0| 34 36 0d 54 68 69 73 20 | 73 69 6d 70 6c 65 20 65 |46.This |simple e|
|000047b0| 78 61 6d 70 6c 65 20 73 | 68 6f 77 73 20 68 6f 77 |xample s|hows how|
|000047c0| 20 74 68 65 20 64 65 72 | 65 66 65 72 65 6e 63 65 | the der|eference|
|000047d0| 20 6f 70 65 72 61 74 6f | 72 20 65 78 74 72 61 63 | operato|r extrac|
|000047e0| 74 73 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ts the v|alue of |
|000047f0| 74 68 65 20 61 64 64 72 | 65 73 73 2c 20 69 6e 20 |the addr|ess, in |
|00004800| 74 68 69 73 20 63 61 73 | 65 20 74 68 65 20 61 64 |this cas|e the ad|
|00004810| 64 72 65 73 73 20 6f 66 | 20 74 68 65 20 d2 61 67 |dress of| the .ag|
|00004820| 65 d3 20 63 65 6c 6c 20 | 69 6e 20 74 68 65 20 d2 |e. cell |in the .|
|00004830| 65 78 61 6d 70 6c 65 73 | d3 20 74 61 62 6c 65 2e |examples|. table.|
|00004840| 0d 0d 6f 6e 20 74 72 69 | 70 6c 65 20 28 61 64 64 |..on tri|ple (add|
|00004850| 72 4e 29 0d 20 20 20 61 | 64 64 72 4e 5e 20 3d 20 |rN). a|ddrN^ = |
|00004860| 61 64 64 72 4e 5e 20 2a | 20 33 0d 74 72 69 70 6c |addrN^ *| 3.tripl|
|00004870| 65 20 28 40 65 78 61 6d | 70 6c 65 73 2e 61 67 65 |e (@exam|ples.age|
|00004880| 29 0d 54 79 70 65 20 74 | 68 69 73 20 73 63 72 69 |).Type t|his scri|
|00004890| 70 74 20 69 6e 74 6f 20 | 61 20 73 63 72 69 70 74 |pt into |a script|
|000048a0| 20 77 69 6e 64 6f 77 2e | 20 49 6e 20 74 68 69 73 | window.| In this|
|000048b0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 6c 6f | example|, the lo|
|000048c0| 63 61 6c 20 73 63 72 69 | 70 74 20 d2 74 72 69 70 |cal scri|pt .trip|
|000048d0| 6c 65 d3 20 6d 75 6c 74 | 69 70 6c 69 65 73 20 62 |le. mult|iplies b|
|000048e0| 79 20 74 68 72 65 65 20 | 74 68 65 20 76 61 6c 75 |y three |the valu|
|000048f0| 65 20 77 68 6f 73 65 20 | 61 64 64 72 65 73 73 20 |e whose |address |
|00004900| 69 73 20 70 61 73 73 65 | 64 20 74 6f 20 69 74 2e |is passe|d to it.|
|00004910| 20 0d 0d 54 68 65 20 65 | 78 61 6d 70 6c 65 20 62 | ..The e|xample b|
|00004920| 65 6c 6f 77 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |elow dem|onstrate|
|00004930| 73 20 61 20 6d 6f 72 65 | 20 73 74 72 61 69 67 68 |s a more| straigh|
|00004940| 74 66 6f 72 77 61 72 64 | 20 6d 65 74 68 6f 64 20 |tforward| method |
|00004950| 6f 66 20 61 63 63 6f 6d | 70 6c 69 73 68 69 6e 67 |of accom|plishing|
|00004960| 20 74 68 65 20 73 61 6d | 65 20 74 68 69 6e 67 2c | the sam|e thing,|
|00004970| 20 62 75 74 20 69 74 20 | 69 73 20 69 6e 74 65 72 | but it |is inter|
|00004980| 65 73 74 69 6e 67 20 73 | 65 65 20 68 6f 77 20 74 |esting s|ee how t|
|00004990| 68 65 20 40 20 61 6e 64 | 20 5e 20 6f 70 65 72 61 |he @ and| ^ opera|
|000049a0| 74 6f 72 73 20 77 6f 72 | 6b 20 74 6f 67 65 74 68 |tors wor|k togeth|
|000049b0| 65 72 20 68 65 72 65 2e | 0d 09 6f 6e 20 74 72 69 |er here.|..on tri|
|000049c0| 70 6c 65 20 28 6e 29 0d | 09 09 72 65 74 75 72 6e |ple (n).|..return|
|000049d0| 20 28 6e 20 2a 20 33 29 | 0d 09 65 78 61 6d 70 6c | (n * 3)|..exampl|
|000049e0| 65 73 2e 61 67 65 20 3d | 20 74 72 69 70 6c 65 20 |es.age =| triple |
|000049f0| 28 65 78 61 6d 70 6c 65 | 73 2e 61 67 65 29 0d 0d |(example|s.age)..|
|00004a00| 54 79 70 65 20 74 68 69 | 73 20 73 63 72 69 70 74 |Type thi|s script|
|00004a10| 20 69 6e 74 6f 20 61 20 | 73 63 72 69 70 74 20 77 | into a |script w|
|00004a20| 69 6e 64 6f 77 3a 0d 09 | 74 79 70 65 4f 66 20 28 |indow:..|typeOf (|
|00004a30| 77 69 6e 64 6f 77 2e 66 | 72 6f 6e 74 6d 6f 73 74 |window.f|rontmost|
|00004a40| 20 28 29 5e 29 20 3d 3d | 20 74 61 62 6c 65 54 79 | ()^) ==| tableTy|
|00004a50| 70 65 0d 09 09 c8 20 74 | 72 75 65 0d 48 65 72 65 |pe.... t|rue.Here|
|00004a60| 2c 20 74 68 65 20 76 61 | 6c 75 65 20 72 65 74 75 |, the va|lue retu|
|00004a70| 72 6e 65 64 20 62 79 20 | 77 69 6e 64 6f 77 2e 66 |rned by |window.f|
|00004a80| 72 6f 6e 74 6d 6f 73 74 | 20 d1 20 61 20 73 74 72 |rontmost| . a str|
|00004a90| 69 6e 67 20 d1 20 69 73 | 20 74 72 65 61 74 65 64 |ing . is| treated|
|00004aa0| 20 61 73 20 61 20 64 61 | 74 61 62 61 73 65 20 61 | as a da|tabase a|
|00004ab0| 64 64 72 65 73 73 2c 20 | 61 6e 64 20 74 68 65 20 |ddress, |and the |
|00004ac0| 74 79 70 65 20 6f 66 20 | 74 68 65 20 76 61 6c 75 |type of |the valu|
|00004ad0| 65 20 61 74 20 74 68 61 | 74 20 61 64 64 72 65 73 |e at tha|t addres|
|00004ae0| 73 20 69 73 20 63 6f 6d | 70 61 72 65 64 20 74 6f |s is com|pared to|
|00004af0| 20 74 61 62 6c 65 54 79 | 70 65 2e 20 49 66 20 74 | tableTy|pe. If t|
|00004b00| 68 65 20 66 72 6f 6e 74 | 6d 6f 73 74 20 77 69 6e |he front|most win|
|00004b10| 64 6f 77 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 74 |dow cont|ains a t|
|00004b20| 61 62 6c 65 2c 20 74 68 | 65 20 72 65 73 75 6c 74 |able, th|e result|
|00004b30| 20 6f 66 20 74 68 65 20 | 65 78 70 72 65 73 73 69 | of the |expressi|
|00004b40| 6f 6e 20 77 69 6c 6c 20 | 62 65 20 74 72 75 65 2e |on will |be true.|
|00004b50| 0d 4e 6f 74 65 73 09 54 | 68 65 20 74 65 63 68 6e |.Notes.T|he techn|
|00004b60| 69 71 75 65 20 73 68 6f | 77 6e 20 69 6e 20 74 68 |ique sho|wn in th|
|00004b70| 65 20 73 65 63 6f 6e 64 | 20 65 78 61 6d 70 6c 65 |e second| example|
|00004b80| 20 61 62 6f 76 65 20 69 | 73 20 67 65 6e 65 72 61 | above i|s genera|
|00004b90| 6c 6c 79 20 61 64 76 69 | 73 61 62 6c 65 20 6f 6e |lly advi|sable on|
|00004ba0| 6c 79 20 77 68 65 6e 20 | 77 6f 72 6b 69 6e 67 20 |ly when |working |
|00004bb0| 77 69 74 68 20 6c 61 72 | 67 65 20 70 69 65 63 65 |with lar|ge piece|
|00004bc0| 73 20 6f 66 20 64 61 74 | 61 20 74 68 61 74 20 72 |s of dat|a that r|
|00004bd0| 65 73 69 64 65 20 69 6e | 20 74 68 65 20 64 61 74 |eside in| the dat|
|00004be0| 61 62 61 73 65 2c 20 73 | 75 63 68 20 61 73 20 62 |abase, s|uch as b|
|00004bf0| 69 6e 61 72 79 20 76 61 | 6c 75 65 73 2c 20 69 6e |inary va|lues, in|
|00004c00| 20 77 68 69 63 68 20 63 | 61 73 65 20 6d 65 6d 6f | which c|ase memo|
|00004c10| 72 79 20 6f 76 65 72 68 | 65 61 64 20 6d 61 79 20 |ry overh|ead may |
|00004c20| 62 65 20 72 65 64 75 63 | 65 64 2e 20 4f 74 68 65 |be reduc|ed. Othe|
|00004c30| 72 77 69 73 65 2c 20 74 | 68 65 20 73 69 6d 70 6c |rwise, t|he simpl|
|00004c40| 65 72 20 61 70 70 72 6f | 61 63 68 20 6f 66 20 65 |er appro|ach of e|
|00004c50| 78 61 6d 70 6c 65 20 23 | 33 20 69 73 20 70 72 65 |xample #|3 is pre|
|00004c60| 66 65 72 61 62 6c 65 2e | 0d 53 65 65 20 41 6c 73 |ferable.|.See Als|
|00004c70| 6f 09 40 0d 0d 56 65 72 | 62 09 25 0d 53 79 6e 74 |o.@..Ver|b.%.Synt|
|00004c80| 61 78 09 65 78 70 72 65 | 73 73 69 6f 6e 31 20 25 |ax.expre|ssion1 %|
|00004c90| 20 65 78 70 72 65 73 73 | 69 6f 6e 32 0d 41 63 74 | express|ion2.Act|
|00004ca0| 69 6f 6e 09 54 68 65 20 | 61 72 69 74 68 6d 65 74 |ion.The |arithmet|
|00004cb0| 69 63 20 6d 6f 64 75 6c | 75 73 20 6f 70 65 72 61 |ic modul|us opera|
|00004cc0| 74 6f 72 20 79 69 65 6c | 64 73 20 74 68 65 20 72 |tor yiel|ds the r|
|00004cd0| 65 6d 61 69 6e 64 65 72 | 20 77 68 65 6e 20 64 69 |emainder| when di|
|00004ce0| 76 69 64 69 6e 67 20 74 | 68 65 20 76 61 6c 75 65 |viding t|he value|
|00004cf0| 20 6f 66 20 65 78 70 72 | 65 73 73 69 6f 6e 31 20 | of expr|ession1 |
|00004d00| 62 79 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |by the v|alue of |
|00004d10| 65 78 70 72 65 73 73 69 | 6f 6e 32 2e 0d 45 78 61 |expressi|on2..Exa|
|00004d20| 6d 70 6c 65 73 09 31 30 | 20 25 20 34 0d 09 c8 20 |mples.10| % 4... |
|00004d30| 32 0d 46 6f 75 72 20 67 | 6f 65 73 20 74 77 6f 20 |2.Four g|oes two |
|00004d40| 74 69 6d 65 73 20 69 6e | 74 6f 20 31 30 2c 20 6c |times in|to 10, l|
|00004d50| 65 61 76 69 6e 67 20 61 | 20 72 65 6d 61 69 6e 64 |eaving a| remaind|
|00004d60| 65 72 20 6f 66 20 74 77 | 6f 2e 0d 0d 31 30 20 25 |er of tw|o...10 %|
|00004d70| 20 34 2e 30 0d 09 c8 0d | 54 68 69 73 20 73 74 61 | 4.0....|This sta|
|00004d80| 74 65 6d 65 6e 74 20 67 | 65 6e 65 72 61 74 65 73 |tement g|enerates|
|00004d90| 20 61 6e 20 65 72 72 6f | 72 3b 20 74 68 65 20 6d | an erro|r; the m|
|00004da0| 6f 64 75 6c 75 73 20 6f | 70 65 72 61 74 6f 72 20 |odulus o|perator |
|00004db0| 64 6f 65 73 20 6e 6f 74 | 20 77 6f 72 6b 20 6f 6e |does not| work on|
|00004dc0| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00004dd0| 76 61 6c 75 65 73 2c 20 | 73 69 6e 63 65 20 74 68 |values, |since th|
|00004de0| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 66 6c 6f 61 |e result| of floa|
|00004df0| 74 69 6e 67 20 70 6f 69 | 6e 74 20 64 69 76 69 73 |ting poi|nt divis|
|00004e00| 69 6f 6e 20 69 73 20 6e | 6f 74 20 74 72 75 6e 63 |ion is n|ot trunc|
|00004e10| 61 74 65 64 20 61 6e 64 | 20 74 68 75 73 20 68 61 |ated and| thus ha|
|00004e20| 73 20 6e 6f 20 72 65 6d | 61 69 6e 64 65 72 2e 0d |s no rem|ainder..|
|00004e30| 0d 6c 6f 6e 67 20 28 63 | 6c 6f 63 6b 2e 6e 6f 77 |.long (c|lock.now|
|00004e40| 20 28 29 20 25 20 33 36 | 30 30 29 0d 09 c8 20 32 | () % 36|00)... 2|
|00004e50| 35 36 36 0d 54 68 69 73 | 20 65 78 70 72 65 73 73 |566.This| express|
|00004e60| 69 6f 6e 20 79 69 65 6c | 64 73 20 74 68 65 20 6e |ion yiel|ds the n|
|00004e70| 75 6d 62 65 72 20 6f 66 | 20 73 65 63 6f 6e 64 73 |umber of| seconds|
|00004e80| 20 69 6e 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e | into th|e curren|
|00004e90| 74 20 68 6f 75 72 20 77 | 65 20 61 72 65 20 72 69 |t hour w|e are ri|
|00004ea0| 67 68 74 20 6e 6f 77 2e | 0d 4e 6f 74 65 73 09 4f |ght now.|.Notes.O|
|00004eb0| 6e 6c 79 20 69 6e 74 65 | 67 72 61 6c 2d 63 6f 6d |nly inte|gral-com|
|00004ec0| 70 61 74 69 62 6c 65 20 | 74 79 70 65 73 20 d1 20 |patible |types . |
|00004ed0| 73 68 6f 72 74 2c 20 6c | 6f 6e 67 2c 20 64 61 74 |short, l|ong, dat|
|00004ee0| 65 2c 20 65 74 63 2e 20 | d1 20 63 61 6e 20 62 65 |e, etc. |. can be|
|00004ef0| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 6d 6f 64 | used in| the mod|
|00004f00| 75 6c 75 73 20 6f 70 65 | 72 61 74 69 6f 6e 2e 0d |ulus ope|ration..|
|00004f10| 55 73 65 72 54 61 6c 6b | 20 65 6d 70 6c 6f 79 73 |UserTalk| employs|
|00004f20| 20 61 75 74 6f 6d 61 74 | 69 63 20 74 79 70 65 20 | automat|ic type |
|00004f30| 63 6f 65 72 63 69 6f 6e | 20 77 68 65 6e 20 65 76 |coercion| when ev|
|00004f40| 61 6c 75 61 74 69 6e 67 | 20 61 72 69 74 68 6d 65 |aluating| arithme|
|00004f50| 74 69 63 20 61 6e 64 20 | 63 6f 6d 70 61 72 61 74 |tic and |comparat|
|00004f60| 69 76 65 20 6f 70 65 72 | 61 74 69 6f 6e 73 3b 20 |ive oper|ations; |
|00004f70| 74 68 65 20 74 77 6f 20 | 65 78 70 72 65 73 73 69 |the two |expressi|
|00004f80| 6f 6e 73 20 6f 66 20 74 | 68 65 20 6d 6f 64 75 6c |ons of t|he modul|
|00004f90| 75 73 20 6f 70 65 72 61 | 74 69 6f 6e 20 6e 65 65 |us opera|tion nee|
|00004fa0| 64 20 6e 6f 74 20 62 65 | 20 6f 66 20 74 68 65 20 |d not be| of the |
|00004fb0| 73 61 6d 65 20 74 79 70 | 65 2e 20 47 65 6e 65 72 |same typ|e. Gener|
|00004fc0| 61 6c 6c 79 2c 20 74 68 | 65 20 72 65 73 75 6c 74 |ally, th|e result|
|00004fd0| 69 6e 67 20 74 79 70 65 | 20 69 73 20 74 68 65 20 |ing type| is the |
|00004fe0| 6d 6f 72 65 20 63 6f 6d | 70 6c 65 78 20 74 79 70 |more com|plex typ|
|00004ff0| 65 2c 20 74 68 65 20 6f | 6e 65 20 74 68 61 74 20 |e, the o|ne that |
|00005000| 63 61 6e 20 6d 6f 73 74 | 20 72 65 61 64 69 6c 79 |can most| readily|
|00005010| 20 72 65 70 72 65 73 65 | 6e 74 20 62 6f 74 68 20 | represe|nt both |
|00005020| 76 61 6c 75 65 73 2e 0d | 53 65 65 20 41 6c 73 6f |values..|See Also|
|00005030| 09 2b 0d d0 0d 2a 0d 2f | 0d 0d 56 65 72 62 09 62 |.+...*./|..Verb.b|
|00005040| 72 65 61 6b 0d 53 79 6e | 74 61 78 09 62 72 65 61 |reak.Syn|tax.brea|
|00005050| 6b 0d 41 63 74 69 6f 6e | 09 54 65 72 6d 69 6e 61 |k.Action|.Termina|
|00005060| 74 65 73 20 74 68 65 20 | 69 6e 6e 65 72 6d 6f 73 |tes the |innermos|
|00005070| 74 20 66 6f 72 2c 20 6c | 6f 6f 70 2c 20 66 69 6c |t for, l|oop, fil|
|00005080| 65 6c 6f 6f 70 2c 20 6f | 72 20 77 68 69 6c 65 20 |eloop, o|r while |
|00005090| 73 74 61 74 65 6d 65 6e | 74 20 69 6e 20 77 68 69 |statemen|t in whi|
|000050a0| 63 68 20 69 74 20 69 73 | 20 63 6f 6e 74 61 69 6e |ch it is| contain|
|000050b0| 65 64 2e 20 53 63 72 69 | 70 74 20 65 78 65 63 75 |ed. Scri|pt execu|
|000050c0| 74 69 6f 6e 20 63 6f 6e | 74 69 6e 75 65 73 20 61 |tion con|tinues a|
|000050d0| 74 20 74 68 65 20 6e 65 | 78 74 20 73 74 61 74 65 |t the ne|xt state|
|000050e0| 6d 65 6e 74 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 |ment fol|lowing t|
|000050f0| 68 65 20 6c 6f 6f 70 69 | 6e 67 20 63 6f 6e 73 74 |he loopi|ng const|
|00005100| 72 75 63 74 2c 20 73 6b | 69 70 70 69 6e 67 20 61 |ruct, sk|ipping a|
|00005110| 6e 79 20 73 75 62 73 65 | 71 75 65 6e 74 20 73 74 |ny subse|quent st|
|00005120| 61 74 65 6d 65 6e 74 73 | 20 77 69 74 68 69 6e 20 |atements| within |
|00005130| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 6f 6f 70 |the curr|ent loop|
|00005140| 20 62 6f 64 79 2e 0d 45 | 78 61 6d 70 6c 65 73 09 | body..E|xamples.|
|00005150| 66 69 6c 65 6c 6f 6f 70 | 20 28 66 4e 61 6d 65 20 |fileloop| (fName |
|00005160| 69 6e 20 66 6f 6c 64 65 | 72 50 61 74 68 29 0d 09 |in folde|rPath)..|
|00005170| 69 66 20 66 69 6c 65 2e | 69 73 4c 6f 63 6b 65 64 |if file.|isLocked|
|00005180| 20 28 66 4e 61 6d 65 29 | 0d 09 09 6c 6f 63 6b 65 | (fName)|...locke|
|00005190| 64 46 69 6c 65 46 6f 75 | 6e 64 20 3d 20 74 72 75 |dFileFou|nd = tru|
|000051a0| 65 0d 09 09 62 72 65 61 | 6b 0d 09 2b 2b 6e 75 6d |e...brea|k..++num|
|000051b0| 62 65 72 4f 66 46 69 6c | 65 73 0d 69 66 20 6c 6f |berOfFil|es.if lo|
|000051c0| 63 6b 65 64 46 69 6c 65 | 46 6f 75 6e 64 0d 09 6d |ckedFile|Found..m|
|000051d0| 73 67 20 28 22 46 6f 75 | 6e 64 20 61 20 6c 6f 63 |sg ("Fou|nd a loc|
|000051e0| 6b 65 64 20 66 69 6c 65 | 2e 22 29 0d 54 68 69 73 |ked file|.").This|
|000051f0| 20 69 73 20 6a 75 73 74 | 20 61 20 73 63 72 69 70 | is just| a scrip|
|00005200| 74 20 66 72 61 67 6d 65 | 6e 74 2c 20 73 6f 20 64 |t fragme|nt, so d|
|00005210| 6f 6e d5 74 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |on.t att|empt to |
|00005220| 65 78 65 63 75 74 65 20 | 69 74 2e 20 41 20 6c 6f |execute |it. A lo|
|00005230| 6f 70 20 6c 69 6b 65 20 | 74 68 65 20 6f 6e 65 20 |op like |the one |
|00005240| 61 62 6f 76 65 20 6d 69 | 67 68 74 20 62 65 20 75 |above mi|ght be u|
|00005250| 73 65 64 20 74 6f 20 63 | 6f 75 6e 74 20 74 68 65 |sed to c|ount the|
|00005260| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 69 6c 65 73 | number |of files|
|00005270| 20 69 6e 20 61 20 66 6f | 6c 64 65 72 20 61 62 6f | in a fo|lder abo|
|00005280| 75 74 20 74 6f 20 62 65 | 20 64 65 6c 65 74 65 64 |ut to be| deleted|
|00005290| 2c 20 73 6f 20 74 68 61 | 74 20 61 20 63 6f 6e 66 |, so tha|t a conf|
|000052a0| 69 72 6d 61 74 69 6f 6e | 20 64 69 61 6c 6f 67 20 |irmation| dialog |
|000052b0| 63 6f 75 6c 64 20 62 65 | 20 70 72 65 73 65 6e 74 |could be| present|
|000052c0| 65 64 20 74 6f 20 74 68 | 65 20 75 73 65 72 2e 20 |ed to th|e user. |
|000052d0| 48 6f 77 65 76 65 72 2c | 20 73 69 6e 63 65 20 61 |However,| since a|
|000052e0| 20 6c 6f 63 6b 65 64 20 | 66 69 6c 65 20 77 61 73 | locked |file was|
|000052f0| 20 66 6f 75 6e 64 2c 20 | 74 68 65 20 66 6f 6c 64 | found, |the fold|
|00005300| 65 72 20 63 61 6e 6e 6f | 74 20 62 65 20 64 65 6c |er canno|t be del|
|00005310| 65 74 65 64 2c 20 61 6e | 64 20 74 68 65 20 6c 6f |eted, an|d the lo|
|00005320| 6f 70 20 69 73 20 74 65 | 72 6d 69 6e 61 74 65 64 |op is te|rminated|
|00005330| 20 65 61 72 6c 79 2e 0d | 0d 6c 6f 6f 70 0d 09 69 | early..|.loop..i|
|00005340| 66 20 6e 6f 74 20 64 69 | 61 6c 6f 67 2e 61 73 6b |f not di|alog.ask|
|00005350| 20 28 22 57 68 61 74 20 | 6e 75 6d 62 65 72 20 61 | ("What |number a|
|00005360| 6d 20 49 20 74 68 69 6e | 6b 69 6e 67 20 6f 66 3f |m I thin|king of?|
|00005370| 22 2c 20 40 78 29 0d 09 | 09 72 65 74 75 72 6e 20 |", @x)..|.return |
|00005380| 28 66 61 6c 73 65 29 0d | 09 69 66 20 78 20 3d 3d |(false).|.if x ==|
|00005390| 20 31 36 33 39 36 0d 09 | 09 62 72 65 61 6b 0d 09 | 16396..|.break..|
|000053a0| 6d 73 67 20 28 22 54 72 | 79 20 61 67 61 69 6e 21 |msg ("Tr|y again!|
|000053b0| 22 29 0d 54 68 69 73 20 | 69 73 20 6a 75 73 74 20 |").This |is just |
|000053c0| 61 20 73 63 72 69 70 74 | 20 66 72 61 67 6d 65 6e |a script| fragmen|
|000053d0| 74 2c 20 73 6f 20 64 6f | 6e d5 74 20 61 74 74 65 |t, so do|n.t atte|
|000053e0| 6d 70 74 20 74 6f 20 65 | 78 65 63 75 74 65 20 69 |mpt to e|xecute i|
|000053f0| 74 2e 20 54 68 69 73 20 | 6c 6f 6f 70 20 70 72 6f |t. This |loop pro|
|00005400| 6d 70 74 73 20 74 68 65 | 20 75 73 65 72 20 66 6f |mpts the| user fo|
|00005410| 72 20 61 20 6e 75 6d 62 | 65 72 20 66 6f 72 65 76 |r a numb|er forev|
|00005420| 65 72 2c 20 75 6e 74 69 | 6c 20 68 65 20 6f 72 20 |er, unti|l he or |
|00005430| 73 68 65 20 65 78 68 69 | 62 69 74 73 20 61 73 74 |she exhi|bits ast|
|00005440| 6f 6e 69 73 68 69 6e 67 | 20 63 6c 61 69 72 76 6f |onishing| clairvo|
|00005450| 79 61 6e 63 65 20 6f 72 | 20 67 65 74 73 20 73 69 |yance or| gets si|
|00005460| 63 6b 20 6f 66 20 74 68 | 65 20 67 61 6d 65 2e 20 |ck of th|e game. |
|00005470| 54 68 65 20 62 72 65 61 | 6b 20 73 74 61 74 65 6d |The brea|k statem|
|00005480| 65 6e 74 20 61 6c 6c 6f | 77 73 20 74 68 65 20 6c |ent allo|ws the l|
|00005490| 6f 6f 70 20 74 6f 20 62 | 65 20 74 65 72 6d 69 6e |oop to b|e termin|
|000054a0| 61 74 65 64 20 69 66 20 | 74 68 65 20 75 73 65 72 |ated if |the user|
|000054b0| 20 67 65 74 73 20 6c 75 | 63 6b 79 2e 0d 4e 6f 74 | gets lu|cky..Not|
|000054c0| 65 73 09 54 68 65 20 62 | 72 65 61 6b 20 73 74 61 |es.The b|reak sta|
|000054d0| 74 65 6d 65 6e 74 20 6f | 6e 6c 79 20 74 65 72 6d |tement o|nly term|
|000054e0| 69 6e 61 74 65 73 20 74 | 68 65 20 6c 6f 6f 70 20 |inates t|he loop |
|000054f0| 74 68 61 74 20 63 6f 6e | 74 61 69 6e 73 20 69 74 |that con|tains it|
|00005500| 3b 20 6c 6f 6f 70 73 20 | 6f 75 74 73 69 64 65 20 |; loops |outside |
|00005510| 6f 66 20 74 68 65 20 69 | 6e 6e 65 72 6d 6f 73 74 |of the i|nnermost|
|00005520| 20 6c 6f 6f 70 20 63 6f | 6e 74 69 6e 75 65 20 74 | loop co|ntinue t|
|00005530| 6f 20 65 78 65 63 75 74 | 65 20 61 73 20 75 73 75 |o execut|e as usu|
|00005540| 61 6c 2e 0d 53 65 65 20 | 41 6c 73 6f 09 66 6f 72 |al..See |Also.for|
|00005550| 0d 66 6f 72 0d 66 69 6c | 65 6c 6f 6f 70 0d 6c 6f |.for.fil|eloop.lo|
|00005560| 6f 70 0d 77 68 69 6c 65 | 0d 63 6f 6e 74 69 6e 75 |op.while|.continu|
|00005570| 65 0d 0d 56 65 72 62 09 | 62 75 6e 64 6c 65 0d 53 |e..Verb.|bundle.S|
|00005580| 79 6e 74 61 78 09 62 75 | 6e 64 6c 65 0d 09 73 74 |yntax.bu|ndle..st|
|00005590| 61 74 65 6d 65 6e 74 73 | 0d 41 63 74 69 6f 6e 09 |atements|.Action.|
|000055a0| 45 78 65 63 75 74 65 73 | 20 73 74 61 74 65 6d 65 |Executes| stateme|
|000055b0| 6e 74 73 20 6f 6e 63 65 | 2e 0d 45 78 61 6d 70 6c |nts once|..Exampl|
|000055c0| 65 73 09 62 75 6e 64 6c | 65 20 c7 73 65 74 20 75 |es.bundl|e .set u|
|000055d0| 70 20 74 68 65 20 6f 62 | 6a 65 63 74 20 64 61 74 |p the ob|ject dat|
|000055e0| 61 62 61 73 65 20 66 6f | 72 20 61 20 6e 65 77 20 |abase fo|r a new |
|000055f0| 72 75 6e 0d 09 61 70 70 | 2e 63 6c 65 61 72 4e 65 |run..app|.clearNe|
|00005600| 74 77 6f 72 6b 41 70 70 | 20 28 29 0d 09 46 72 6f |tworkApp| ()..Fro|
|00005610| 6e 74 69 65 72 2e 70 61 | 74 68 73 74 72 69 6e 67 |ntier.pa|thstring|
|00005620| 20 3d 20 66 69 6c 65 2e | 67 65 74 50 61 74 68 20 | = file.|getPath |
|00005630| 28 29 0d 09 6d 65 6e 75 | 2e 63 75 72 72 65 6e 74 |()..menu|.current|
|00005640| 73 75 69 74 65 20 3d 20 | 22 22 0d 09 6d 6f 64 65 |suite = |""..mode|
|00005650| 73 2e 63 75 72 72 65 6e | 74 6d 65 6e 75 20 3d 20 |s.curren|tmenu = |
|00005660| 30 0d 54 79 70 65 20 74 | 68 69 73 20 73 63 72 69 |0.Type t|his scri|
|00005670| 70 74 20 69 6e 74 6f 20 | 61 20 73 63 72 69 70 74 |pt into |a script|
|00005680| 20 77 69 6e 64 6f 77 2e | 20 49 6e 20 74 68 69 73 | window.| In this|
|00005690| 20 65 78 61 6d 70 6c 65 | 2c 20 61 20 66 72 61 67 | example|, a frag|
|000056a0| 6d 65 6e 74 20 6f 66 20 | 46 72 6f 6e 74 69 65 72 |ment of |Frontier|
|000056b0| d5 73 20 73 74 61 6e 64 | 61 72 64 20 73 74 61 72 |.s stand|ard star|
|000056c0| 74 75 70 20 73 63 72 69 | 70 74 2c 20 74 68 65 20 |tup scri|pt, the |
|000056d0| 62 75 6e 64 6c 65 20 73 | 74 61 74 65 6d 65 6e 74 |bundle s|tatement|
|000056e0| 20 73 65 72 76 65 73 20 | 70 75 72 65 6c 79 20 61 | serves |purely a|
|000056f0| 73 20 61 6e 20 65 6e 63 | 61 70 73 75 6c 61 74 69 |s an enc|apsulati|
|00005700| 6f 6e 20 6d 65 63 68 61 | 6e 69 73 6d 2e 20 54 68 |on mecha|nism. Th|
|00005710| 65 20 66 6f 75 72 20 73 | 74 61 74 65 6d 65 6e 74 |e four s|tatement|
|00005720| 73 20 69 6e 20 74 68 65 | 20 62 75 6e 64 6c 65 20 |s in the| bundle |
|00005730| 61 72 65 20 65 78 65 63 | 75 74 65 64 20 65 78 61 |are exec|uted exa|
|00005740| 63 74 6c 79 20 61 73 20 | 69 66 20 74 68 65 79 20 |ctly as |if they |
|00005750| 61 70 70 65 61 72 65 64 | 20 69 6e 20 6c 69 6e 65 |appeared| in line|
|00005760| 2c 20 6f 75 74 73 69 64 | 65 20 6f 66 20 74 68 65 |, outsid|e of the|
|00005770| 20 62 75 6e 64 6c 65 2e | 20 54 68 65 20 62 75 6e | bundle.| The bun|
|00005780| 64 6c 65 20 73 74 61 74 | 65 6d 65 6e 74 20 70 72 |dle stat|ement pr|
|00005790| 6f 76 69 64 65 73 20 61 | 64 64 69 74 69 6f 6e 61 |ovides a|dditiona|
|000057a0| 6c 20 73 74 72 75 63 74 | 75 72 65 20 74 6f 20 74 |l struct|ure to t|
|000057b0| 68 65 20 73 63 72 69 70 | 74 20 73 6f 20 74 68 61 |he scrip|t so tha|
|000057c0| 74 20 74 68 65 20 73 74 | 61 74 65 6d 65 6e 74 73 |t the st|atements|
|000057d0| 20 63 61 6e 20 62 65 20 | 65 78 70 61 6e 64 65 64 | can be |expanded|
|000057e0| 20 61 6e 64 20 63 6f 6c | 6c 61 70 73 65 64 20 74 | and col|lapsed t|
|000057f0| 6f 67 65 74 68 65 72 2c | 20 61 6e 64 20 68 61 76 |ogether,| and hav|
|00005800| 65 20 61 20 73 69 6e 67 | 6c 65 20 63 6f 6d 6d 65 |e a sing|le comme|
|00005810| 6e 74 20 74 68 61 74 20 | 64 65 73 63 72 69 62 65 |nt that |describe|
|00005820| 73 20 74 68 65 69 72 20 | 63 6f 6d 62 69 6e 65 64 |s their |combined|
|00005830| 20 61 63 74 69 6f 6e 2e | 0d 0d 62 75 6e 64 6c 65 | action.|..bundle|
|00005840| 20 c7 6d 61 6b 65 20 73 | 75 72 65 20 74 68 65 20 | .make s|ure the |
|00005850| 75 73 65 72 20 68 61 73 | 20 61 20 6e 6f 74 65 70 |user has| a notep|
|00005860| 61 64 20 6f 75 74 6c 69 | 6e 65 0d 09 6c 6f 63 61 |ad outli|ne..loca|
|00005870| 6c 20 28 6e 6f 74 65 70 | 61 64 20 3d 20 40 70 65 |l (notep|ad = @pe|
|00005880| 6f 70 6c 65 74 61 62 6c | 65 5e 2e 6e 6f 74 65 70 |opletabl|e^.notep|
|00005890| 61 64 29 0d 09 69 66 20 | 6e 6f 74 20 64 65 66 69 |ad)..if |not defi|
|000058a0| 6e 65 64 20 28 6e 6f 74 | 65 70 61 64 5e 29 0d 09 |ned (not|epad^)..|
|000058b0| 09 6e 65 77 20 28 6f 75 | 74 6c 69 6e 65 54 79 70 |.new (ou|tlineTyp|
|000058c0| 65 2c 20 6e 6f 74 65 70 | 61 64 29 0d 54 79 70 65 |e, notep|ad).Type|
|000058d0| 20 74 68 69 73 20 73 63 | 72 69 70 74 20 69 6e 74 | this sc|ript int|
|000058e0| 6f 20 61 20 73 63 72 69 | 70 74 20 77 69 6e 64 6f |o a scri|pt windo|
|000058f0| 77 2e 20 54 68 69 73 20 | 65 78 61 6d 70 6c 65 2c |w. This |example,|
|00005900| 20 74 61 6b 65 6e 20 66 | 72 6f 6d 20 46 72 6f 6e | taken f|rom Fron|
|00005910| 74 69 65 72 d5 73 20 d2 | 75 73 65 72 2e 6c 6f 67 |tier.s .|user.log|
|00005920| 69 6e d3 20 73 63 72 69 | 70 74 2c 20 69 6c 6c 75 |in. scri|pt, illu|
|00005930| 73 74 72 61 74 65 73 20 | 61 6e 20 61 64 64 69 74 |strates |an addit|
|00005940| 69 6f 6e 61 6c 20 65 6e | 63 61 70 73 75 6c 61 74 |ional en|capsulat|
|00005950| 69 6f 6e 20 70 72 6f 70 | 65 72 74 79 20 6f 66 20 |ion prop|erty of |
|00005960| 74 68 65 20 62 75 6e 64 | 6c 65 20 73 74 61 74 65 |the bund|le state|
|00005970| 6d 65 6e 74 2e 20 42 79 | 20 64 65 63 6c 61 72 69 |ment. By| declari|
|00005980| 6e 67 20 74 68 65 20 d2 | 6e 6f 74 65 70 61 64 d3 |ng the .|notepad.|
|00005990| 20 6c 6f 63 61 6c 20 76 | 61 72 69 61 62 6c 65 20 | local v|ariable |
|000059a0| 77 69 74 68 69 6e 20 74 | 68 65 20 62 75 6e 64 6c |within t|he bundl|
|000059b0| 65 2c 20 69 74 73 20 73 | 63 6f 70 65 20 69 73 20 |e, its s|cope is |
|000059c0| 6f 6e 6c 79 20 6f 76 65 | 72 20 74 68 6f 73 65 20 |only ove|r those |
|000059d0| 73 74 61 74 65 6d 65 6e | 74 73 20 74 68 61 74 20 |statemen|ts that |
|000059e0| 61 63 74 75 61 6c 6c 79 | 20 77 6f 72 6b 20 77 69 |actually| work wi|
|000059f0| 74 68 20 69 74 2e 20 41 | 73 20 69 6e 20 74 68 65 |th it. A|s in the|
|00005a00| 20 66 69 72 73 74 20 65 | 78 61 6d 70 6c 65 2c 20 | first e|xample, |
|00005a10| 74 68 65 20 62 75 6e 64 | 6c 65 20 73 74 61 74 65 |the bund|le state|
|00005a20| 6d 65 6e 74 20 63 61 6e | 20 62 65 20 63 6f 6c 6c |ment can| be coll|
|00005a30| 61 70 73 65 64 20 6c 65 | 61 76 69 6e 67 20 6a 75 |apsed le|aving ju|
|00005a40| 73 74 20 69 74 73 20 63 | 6f 6d 6d 65 6e 74 20 76 |st its c|omment v|
|00005a50| 69 73 69 62 6c 65 2e 0d | 53 65 65 20 41 6c 73 6f |isible..|See Also|
|00005a60| 09 6f 6e 0d 6c 6f 63 61 | 6c 0d 0d 56 65 72 62 09 |.on.loca|l..Verb.|
|00005a70| 63 61 73 65 0d 53 79 6e | 74 61 78 09 63 61 73 65 |case.Syn|tax.case|
|00005a80| 20 65 78 70 72 65 73 73 | 69 6f 6e 0d 20 20 20 65 | express|ion. e|
|00005a90| 78 70 72 31 0d 20 20 20 | 20 20 20 73 74 61 74 65 |xpr1. | state|
|00005aa0| 6d 65 6e 74 73 31 0d 20 | 20 20 65 78 70 72 32 0d |ments1. | expr2.|
|00005ab0| 20 20 20 20 20 20 73 74 | 61 74 65 6d 65 6e 74 73 | st|atements|
|00005ac0| 32 0d 20 20 20 65 78 70 | 72 4e 0d 20 20 20 20 20 |2. exp|rN. |
|00005ad0| 20 73 74 61 74 65 6d 65 | 6e 74 73 4e 0d 65 6c 73 | stateme|ntsN.els|
|00005ae0| 65 0d 20 20 20 73 74 61 | 74 65 6d 65 6e 74 73 0d |e. sta|tements.|
|00005af0| 41 63 74 69 6f 6e 09 45 | 76 61 6c 75 61 74 65 73 |Action.E|valuates|
|00005b00| 20 74 68 65 20 63 61 73 | 65 20 65 78 70 72 65 73 | the cas|e expres|
|00005b10| 73 69 6f 6e 2c 20 61 6e | 64 20 74 68 65 6e 20 65 |sion, an|d then e|
|00005b20| 76 61 6c 75 61 74 65 73 | 20 65 78 70 72 65 73 73 |valuates| express|
|00005b30| 69 6f 6e 73 20 31 20 74 | 68 72 6f 75 67 68 20 4e |ions 1 t|hrough N|
|00005b40| 20 69 6e 20 73 75 63 63 | 65 73 73 69 6f 6e 20 75 | in succ|ession u|
|00005b50| 6e 74 69 6c 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |ntil one| of the |
|00005b60| 72 65 73 75 6c 74 69 6e | 67 20 76 61 6c 75 65 73 |resultin|g values|
|00005b70| 20 6d 61 74 63 68 65 73 | 20 74 68 61 74 20 6f 66 | matches| that of|
|00005b80| 20 74 68 65 20 63 61 73 | 65 20 65 78 70 72 65 73 | the cas|e expres|
|00005b90| 73 69 6f 6e 2e 20 57 68 | 65 6e 20 61 20 6d 61 74 |sion. Wh|en a mat|
|00005ba0| 63 68 69 6e 67 20 76 61 | 6c 75 65 20 69 73 20 66 |ching va|lue is f|
|00005bb0| 6f 75 6e 64 2c 20 74 68 | 65 20 63 6f 72 72 65 73 |ound, th|e corres|
|00005bc0| 70 6f 6e 64 69 6e 67 20 | 73 74 61 74 65 6d 65 6e |ponding |statemen|
|00005bd0| 74 73 20 61 72 65 20 65 | 78 65 63 75 74 65 64 2c |ts are e|xecuted,|
|00005be0| 20 61 6e 64 20 74 68 65 | 20 63 61 73 65 20 73 74 | and the| case st|
|00005bf0| 61 74 65 6d 65 6e 74 20 | 69 73 20 65 78 69 74 65 |atement |is exite|
|00005c00| 64 2e 0d 54 68 65 20 65 | 6c 73 65 20 63 6c 61 75 |d..The e|lse clau|
|00005c10| 73 65 20 6f 66 20 74 68 | 65 20 63 61 73 65 20 73 |se of th|e case s|
|00005c20| 74 61 74 65 6d 65 6e 74 | 20 69 73 20 6f 70 74 69 |tatement| is opti|
|00005c30| 6f 6e 61 6c 2e 20 49 66 | 20 69 74 20 69 73 20 70 |onal. If| it is p|
|00005c40| 72 6f 76 69 64 65 64 2c | 20 61 6e 64 20 6e 6f 6e |rovided,| and non|
|00005c50| 65 20 6f 66 20 74 68 65 | 20 65 78 70 72 65 73 73 |e of the| express|
|00005c60| 69 6f 6e 73 20 69 6e 20 | 74 68 65 20 6d 61 69 6e |ions in |the main|
|00005c70| 20 63 61 73 65 20 62 6f | 64 79 20 6d 61 74 63 68 | case bo|dy match|
|00005c80| 20 74 68 65 20 63 61 73 | 65 20 65 78 70 72 65 73 | the cas|e expres|
|00005c90| 73 69 6f 6e 2c 20 74 68 | 65 20 65 6c 73 65 20 73 |sion, th|e else s|
|00005ca0| 74 61 74 65 6d 65 6e 74 | 73 20 61 72 65 20 65 78 |tatement|s are ex|
|00005cb0| 65 63 75 74 65 64 2e 0d | 45 78 61 6d 70 6c 65 73 |ecuted..|Examples|
|00005cc0| 09 63 61 73 65 20 64 69 | 61 6c 6f 67 2e 79 65 73 |.case di|alog.yes|
|00005cd0| 4e 6f 43 61 6e 63 65 6c | 20 28 22 53 61 76 65 20 |NoCancel| ("Save |
|00005ce0| 63 68 61 6e 67 65 73 20 | 62 65 66 6f 72 65 20 71 |changes |before q|
|00005cf0| 75 69 74 74 69 6e 67 3f | 22 29 0d 09 31 0d 09 09 |uitting?|")..1...|
|00005d00| 6d 73 67 20 28 22 59 6f | 75 72 20 63 68 61 6e 67 |msg ("Yo|ur chang|
|00005d10| 65 73 20 61 72 65 20 62 | 65 69 6e 67 20 73 61 76 |es are b|eing sav|
|00005d20| 65 64 c9 22 29 0d 09 09 | 66 69 6c 65 4d 65 6e 75 |ed.")...|fileMenu|
|00005d30| 2e 73 61 76 65 20 28 29 | 0d 09 32 0d 09 09 6d 73 |.save ()|..2...ms|
|00005d40| 67 20 28 22 59 6f 75 72 | 20 63 68 61 6e 67 65 73 |g ("Your| changes|
|00005d50| 20 61 72 65 20 62 65 69 | 6e 67 20 64 69 73 63 61 | are bei|ng disca|
|00005d60| 72 64 65 64 c9 22 29 0d | 09 33 0d 09 09 6d 73 67 |rded.").|.3...msg|
|00005d70| 20 28 22 4f 6b 2c 20 77 | 65 20 77 6f 6e d5 74 20 | ("Ok, w|e won.t |
|00005d80| 71 75 69 74 22 29 0d 09 | 09 72 65 74 75 72 6e 20 |quit")..|.return |
|00005d90| 28 66 61 6c 73 65 29 20 | c7 64 6f 6e d5 74 20 63 |(false) |.don.t c|
|00005da0| 6f 6e 74 69 6e 75 65 20 | 70 72 6f 63 65 73 73 0d |ontinue |process.|
|00005db0| 66 69 6c 65 4d 65 6e 75 | 2e 71 75 69 74 20 28 29 |fileMenu|.quit ()|
|00005dc0| 0d 54 79 70 65 20 74 68 | 69 73 20 73 63 72 69 70 |.Type th|is scrip|
|00005dd0| 74 20 69 6e 74 6f 20 61 | 20 73 63 72 69 70 74 20 |t into a| script |
|00005de0| 77 69 6e 64 6f 77 2e 20 | 49 6e 20 74 68 69 73 20 |window. |In this |
|00005df0| 65 78 61 6d 70 6c 65 2c | 20 64 69 61 6c 6f 67 2e |example,| dialog.|
|00005e00| 79 65 73 4e 6f 43 61 6e | 63 65 6c 20 69 73 20 6b |yesNoCan|cel is k|
|00005e10| 6e 6f 77 6e 20 74 6f 20 | 72 65 74 75 72 6e 20 61 |nown to |return a|
|00005e20| 20 72 65 73 75 6c 74 20 | 6f 66 20 31 2c 20 32 20 | result |of 1, 2 |
|00005e30| 6f 72 20 33 2e 20 54 68 | 65 20 63 61 73 65 20 73 |or 3. Th|e case s|
|00005e40| 74 61 74 65 6d 65 6e 74 | 20 61 6c 6c 6f 77 73 20 |tatement| allows |
|00005e50| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00005e60| 61 63 74 69 6f 6e 20 74 | 6f 20 62 65 20 74 61 6b |action t|o be tak|
|00005e70| 65 6e 20 66 6f 72 20 65 | 61 63 68 20 72 65 73 70 |en for e|ach resp|
|00005e80| 6f 6e 73 65 2e 0d 0d 63 | 61 73 65 20 75 73 65 72 |onse...c|ase user|
|00005e90| 2e 69 6e 69 74 69 61 6c | 73 0d 09 22 44 57 22 0d |.initial|s.."DW".|
|00005ea0| 09 09 6d 73 67 20 28 22 | 48 69 20 44 61 76 65 21 |..msg ("|Hi Dave!|
|00005eb0| 22 29 0d 09 22 64 6d 62 | 22 0d 09 09 6d 73 67 20 |").."dmb|"...msg |
|00005ec0| 28 22 59 6f 20 44 6f 75 | 67 21 22 29 0d 65 6c 73 |("Yo Dou|g!").els|
|00005ed0| 65 0d 09 09 6d 73 67 20 | 28 22 48 6f 77 64 79 20 |e...msg |("Howdy |
|00005ee0| 73 74 72 61 6e 67 65 72 | 2e 22 29 0d 54 79 70 65 |stranger|.").Type|
|00005ef0| 20 74 68 69 73 20 73 63 | 72 69 70 74 20 69 6e 74 | this sc|ript int|
|00005f00| 6f 20 61 20 73 63 72 69 | 70 74 20 77 69 6e 64 6f |o a scri|pt windo|
|00005f10| 77 2e 20 54 68 69 73 20 | 65 78 61 6d 70 6c 65 20 |w. This |example |
|00005f20| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 74 68 65 |demonstr|ates the|
|00005f30| 20 75 73 65 20 6f 66 20 | 74 68 65 20 65 6c 73 65 | use of |the else|
|00005f40| 20 63 6c 61 75 73 65 2c | 20 61 6e 64 20 61 6c 73 | clause,| and als|
|00005f50| 6f 20 69 6c 6c 75 73 74 | 72 61 74 65 73 20 61 20 |o illust|rates a |
|00005f60| 66 65 61 74 75 72 65 20 | 6f 66 20 74 68 65 20 63 |feature |of the c|
|00005f70| 61 73 65 20 73 74 61 74 | 65 6d 65 6e 74 20 74 68 |ase stat|ement th|
|00005f80| 61 74 20 69 73 20 75 6e | 6c 69 6b 65 20 6d 6f 73 |at is un|like mos|
|00005f90| 74 20 6f 74 68 65 72 20 | 6c 61 6e 67 75 61 67 65 |t other |language|
|00005fa0| 73 3a 20 74 68 65 20 63 | 61 73 65 20 65 78 70 72 |s: the c|ase expr|
|00005fb0| 65 73 73 69 6f 6e 2c 20 | 61 6e 64 20 74 68 65 20 |ession, |and the |
|00005fc0| 62 6f 64 79 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |body exp|ressions|
|00005fd0| 2c 20 63 61 6e 20 77 6f | 72 6b 20 77 69 74 68 20 |, can wo|rk with |
|00005fe0| 76 61 6c 75 65 73 20 6f | 66 20 61 6e 79 20 74 79 |values o|f any ty|
|00005ff0| 70 65 2e 0d 4e 6f 74 65 | 73 09 54 68 65 20 62 6f |pe..Note|s.The bo|
|00006000| 64 79 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 64 |dy expre|ssions d|
|00006010| 6f 20 6e 6f 74 20 68 61 | 76 65 20 74 6f 20 62 65 |o not ha|ve to be|
|00006020| 20 73 69 6d 70 6c 65 20 | 63 6f 6e 73 74 61 6e 74 | simple |constant|
|00006030| 73 3b 20 74 68 65 79 20 | 6d 61 79 20 62 65 20 63 |s; they |may be c|
|00006040| 6f 6d 70 6c 65 78 20 65 | 78 70 72 65 73 73 69 6f |omplex e|xpressio|
|00006050| 6e 73 20 69 66 20 64 65 | 73 69 72 65 64 2e 0d 4f |ns if de|sired..O|
|00006060| 6e 63 65 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |nce an e|xpressio|
|00006070| 6e d5 73 20 76 61 6c 75 | 65 20 6d 61 74 63 68 65 |n.s valu|e matche|
|00006080| 73 20 74 68 61 74 20 6f | 66 20 74 68 65 20 63 61 |s that o|f the ca|
|00006090| 73 65 20 65 78 70 72 65 | 73 73 69 6f 6e 2c 20 6e |se expre|ssion, n|
|000060a0| 6f 6e 65 20 6f 66 20 74 | 68 65 20 73 75 62 73 65 |one of t|he subse|
|000060b0| 71 75 65 6e 74 20 65 78 | 70 72 65 73 73 69 6f 6e |quent ex|pression|
|000060c0| 20 61 72 65 20 65 76 61 | 6c 75 61 74 65 64 2e 0d | are eva|luated..|
|000060d0| 53 65 65 20 41 6c 73 6f | 09 69 66 0d 0d 56 65 72 |See Also|.if..Ver|
|000060e0| 62 09 63 6f 6e 74 69 6e | 75 65 0d 53 79 6e 74 61 |b.contin|ue.Synta|
|000060f0| 78 09 63 6f 6e 74 69 6e | 75 65 0d 41 63 74 69 6f |x.contin|ue.Actio|
|00006100| 6e 09 53 6b 69 70 73 20 | 74 68 65 20 72 65 6d 61 |n.Skips |the rema|
|00006110| 69 6e 69 6e 67 20 73 74 | 61 74 65 6d 65 6e 74 73 |ining st|atements|
|00006120| 20 69 6e 20 74 68 65 20 | 62 6f 64 79 20 6f 66 20 | in the |body of |
|00006130| 74 68 65 20 63 75 72 72 | 65 6e 74 20 66 6f 72 2c |the curr|ent for,|
|00006140| 20 6c 6f 6f 70 2c 20 66 | 69 6c 65 6c 6f 6f 70 2c | loop, f|ileloop,|
|00006150| 20 6f 72 20 77 68 69 6c | 65 20 73 74 61 74 65 6d | or whil|e statem|
|00006160| 65 6e 74 2e 20 53 63 72 | 69 70 74 20 65 78 65 63 |ent. Scr|ipt exec|
|00006170| 75 74 69 6f 6e 20 63 6f | 6e 74 69 6e 75 65 73 20 |ution co|ntinues |
|00006180| 77 69 74 68 20 74 68 65 | 20 6e 65 78 74 20 69 74 |with the| next it|
|00006190| 65 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 6c |eration |of the l|
|000061a0| 6f 6f 70 69 6e 67 20 63 | 6f 6e 73 74 72 75 63 74 |ooping c|onstruct|
|000061b0| 2c 20 61 66 74 65 72 20 | 69 6e 63 72 65 6d 65 6e |, after |incremen|
|000061c0| 74 69 6e 67 20 74 68 65 | 20 63 6f 75 6e 74 65 72 |ting the| counter|
|000061d0| 20 28 69 6e 20 61 20 66 | 6f 72 20 73 74 61 74 65 | (in a f|or state|
|000061e0| 6d 65 6e 74 29 2c 20 65 | 78 65 63 75 74 69 6e 67 |ment), e|xecuting|
|000061f0| 20 74 68 65 20 6c 6f 6f | 70 20 69 74 65 72 61 74 | the loo|p iterat|
|00006200| 69 6f 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 28 |ion expr|ession (|
|00006210| 69 6e 20 61 20 6c 6f 6f | 70 20 73 74 61 74 65 6d |in a loo|p statem|
|00006220| 65 6e 74 29 2c 20 6f 72 | 20 61 73 73 69 67 6e 69 |ent), or| assigni|
|00006230| 6e 67 20 74 68 65 20 6e | 65 78 74 20 66 69 6c 65 |ng the n|ext file|
|00006240| 20 28 69 6e 20 61 20 66 | 69 6c 65 6c 6f 6f 70 20 | (in a f|ileloop |
|00006250| 73 74 61 74 65 6d 65 6e | 74 29 2e 0d 45 78 61 6d |statemen|t)..Exam|
|00006260| 70 6c 65 09 66 69 6c 65 | 6c 6f 6f 70 20 28 66 4e |ple.file|loop (fN|
|00006270| 61 6d 65 20 69 6e 20 66 | 6f 6c 64 65 72 50 61 74 |ame in f|olderPat|
|00006280| 68 29 0d 09 69 66 20 66 | 69 6c 65 2e 69 73 46 6f |h)..if f|ile.isFo|
|00006290| 6c 64 65 72 20 28 66 4e | 61 6d 65 29 20 c7 73 6b |lder (fN|ame) .sk|
|000062a0| 69 70 20 66 6f 6c 64 65 | 72 73 0d 09 09 63 6f 6e |ip folde|rs...con|
|000062b0| 74 69 6e 75 65 0d 09 69 | 66 20 66 69 6c 65 2e 69 |tinue..i|f file.i|
|000062c0| 73 4c 6f 63 6b 65 64 20 | 28 66 4e 61 6d 65 29 0d |sLocked |(fName).|
|000062d0| 09 09 2e 2e 2e 0d 09 69 | 66 20 66 69 6c 65 2e 73 |.......i|f file.s|
|000062e0| 69 7a 65 20 28 66 4e 61 | 6d 65 29 20 3e 20 32 30 |ize (fNa|me) > 20|
|000062f0| 30 30 30 0d 09 09 2e 2e | 2e 0d 28 54 68 69 73 20 |000.....|..(This |
|00006300| 69 73 20 61 20 73 63 72 | 69 70 74 20 66 72 61 67 |is a scr|ipt frag|
|00006310| 6d 65 6e 74 3b 20 64 6f | 20 6e 6f 74 20 74 72 79 |ment; do| not try|
|00006320| 20 74 6f 20 65 78 65 63 | 75 74 65 20 69 74 20 69 | to exec|ute it i|
|00006330| 6e 20 74 68 65 20 51 75 | 69 63 6b 20 53 63 72 69 |n the Qu|ick Scri|
|00006340| 70 74 20 57 69 6e 64 6f | 77 2e 29 20 49 6e 20 74 |pt Windo|w.) In t|
|00006350| 68 69 73 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 |his exam|ple, the|
|00006360| 20 75 73 65 20 6f 66 20 | 74 68 65 20 63 6f 6e 74 | use of |the cont|
|00006370| 69 6e 75 65 20 73 74 61 | 74 65 6d 65 6e 74 20 61 |inue sta|tement a|
|00006380| 76 6f 69 64 73 20 68 61 | 76 69 6e 67 20 74 6f 20 |voids ha|ving to |
|00006390| 69 6e 64 65 6e 74 20 74 | 68 65 20 72 65 6d 61 69 |indent t|he remai|
|000063a0| 6e 64 65 72 20 6f 66 20 | 74 68 65 20 6c 6f 6f 70 |nder of |the loop|
|000063b0| 20 62 6f 64 79 20 75 6e | 64 65 72 20 61 6e 20 69 | body un|der an i|
|000063c0| 66 20 73 74 61 74 65 6d | 65 6e 74 2e 20 54 79 70 |f statem|ent. Typ|
|000063d0| 69 63 61 6c 6c 79 2c 20 | 74 68 65 20 63 6f 6e 74 |ically, |the cont|
|000063e0| 69 6e 75 65 20 73 74 61 | 74 65 6d 65 6e 74 20 77 |inue sta|tement w|
|000063f0| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 77 68 65 6e |ill be u|sed when|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.